From 8b187508c73b5301bb9da3f6ddd795b0dfd2bf3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Thu, 17 Oct 2024 12:14:32 +0200 Subject: [PATCH] Platform: clear the screen in AndroidApplication test. Otherwise it doesn't even report events, heh. --- src/Magnum/Platform/Test/AndroidApplicationTest.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Magnum/Platform/Test/AndroidApplicationTest.cpp b/src/Magnum/Platform/Test/AndroidApplicationTest.cpp index dccd673f5..aa86380ec 100644 --- a/src/Magnum/Platform/Test/AndroidApplicationTest.cpp +++ b/src/Magnum/Platform/Test/AndroidApplicationTest.cpp @@ -26,6 +26,7 @@ #include +#include "Magnum/GL/DefaultFramebuffer.h" #include "Magnum/Platform/AndroidApplication.h" namespace Magnum { namespace Platform { @@ -76,7 +77,11 @@ struct AndroidApplicationTest: Platform::Application { Debug{} << "window size" << windowSize() << framebufferSize() << dpiScaling(); } - void drawEvent() override {} + void drawEvent() override { + GL::defaultFramebuffer.clear(GL::FramebufferClear::Color); + + swapBuffers(); + } /* For testing HiDPI resize events */ void viewportEvent(ViewportEvent& event) override {