Browse Source

Platform: clear the framebuffer in Sdl2Application test.

It's unnecessarily hard to verify behavioral consistency across
different app implementations without.
pull/481/head
Vladimír Vondruš 6 years ago
parent
commit
fc9a2f45d6
  1. 3
      src/Magnum/Platform/Test/Sdl2ApplicationTest.cpp

3
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();
}

Loading…
Cancel
Save