Browse Source

Platform: I'm sorry for breaking the build.

pull/481/head
Vladimír Vondruš 6 years ago
parent
commit
67a711a101
  1. 7
      src/Magnum/Platform/Test/Sdl2ApplicationTest.cpp

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

@ -31,7 +31,6 @@
#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"
@ -48,6 +47,10 @@
#pragma clang diagnostic pop
#endif
#ifdef MAGNUM_TARGET_GL
#include "Magnum/GL/DefaultFramebuffer.h"
#endif
namespace Magnum { namespace Platform { namespace Test { namespace {
struct Sdl2ApplicationTest: Platform::Application {
@ -69,7 +72,9 @@ struct Sdl2ApplicationTest: Platform::Application {
void drawEvent() override {
Debug{} << "draw event";
#ifdef MAGNUM_TARGET_GL
GL::defaultFramebuffer.clear(GL::FramebufferClear::Color);
#endif
swapBuffers();
}

Loading…
Cancel
Save