From fc9a2f45d6b79c4ace504cb3e8d330f5d54ab7bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Fri, 6 Nov 2020 22:14:54 +0100 Subject: [PATCH] Platform: clear the framebuffer in Sdl2Application test. It's unnecessarily hard to verify behavioral consistency across different app implementations without. --- src/Magnum/Platform/Test/Sdl2ApplicationTest.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Magnum/Platform/Test/Sdl2ApplicationTest.cpp b/src/Magnum/Platform/Test/Sdl2ApplicationTest.cpp index 7904b1a90..3f4810470 100644 --- a/src/Magnum/Platform/Test/Sdl2ApplicationTest.cpp +++ b/src/Magnum/Platform/Test/Sdl2ApplicationTest.cpp @@ -31,6 +31,7 @@ #include "Magnum/ImageView.h" #include "Magnum/Math/ConfigurationValue.h" +#include "Magnum/GL/DefaultFramebuffer.h" #include "Magnum/Platform/Sdl2Application.h" #include "Magnum/Trade/AbstractImporter.h" #include "Magnum/Trade/ImageData.h" @@ -68,6 +69,8 @@ struct Sdl2ApplicationTest: Platform::Application { void drawEvent() override { Debug{} << "draw event"; + GL::defaultFramebuffer.clear(GL::FramebufferClear::Color); + swapBuffers(); }