Browse Source

Platform: clear the screen in AndroidApplication test.

Otherwise it doesn't even report events, heh.
pull/651/head
Vladimír Vondruš 2 years ago
parent
commit
8b187508c7
  1. 7
      src/Magnum/Platform/Test/AndroidApplicationTest.cpp

7
src/Magnum/Platform/Test/AndroidApplicationTest.cpp

@ -26,6 +26,7 @@
#include <Corrade/Containers/EnumSet.hpp> #include <Corrade/Containers/EnumSet.hpp>
#include "Magnum/GL/DefaultFramebuffer.h"
#include "Magnum/Platform/AndroidApplication.h" #include "Magnum/Platform/AndroidApplication.h"
namespace Magnum { namespace Platform { namespace Magnum { namespace Platform {
@ -76,7 +77,11 @@ struct AndroidApplicationTest: Platform::Application {
Debug{} << "window size" << windowSize() << framebufferSize() << dpiScaling(); Debug{} << "window size" << windowSize() << framebufferSize() << dpiScaling();
} }
void drawEvent() override {} void drawEvent() override {
GL::defaultFramebuffer.clear(GL::FramebufferClear::Color);
swapBuffers();
}
/* For testing HiDPI resize events */ /* For testing HiDPI resize events */
void viewportEvent(ViewportEvent& event) override { void viewportEvent(ViewportEvent& event) override {

Loading…
Cancel
Save