Browse Source

Platform: fix GLFW/SDL2 tests on builds w/o GL.

pull/368/head
Vladimír Vondruš 7 years ago
parent
commit
693fb55c10
  1. 6
      src/Magnum/Platform/Test/GlfwApplicationTest.cpp
  2. 6
      src/Magnum/Platform/Test/Sdl2ApplicationTest.cpp

6
src/Magnum/Platform/Test/GlfwApplicationTest.cpp

@ -31,7 +31,11 @@ namespace Magnum { namespace Platform { namespace Test { namespace {
struct GlfwApplicationTest: Platform::Application { struct GlfwApplicationTest: Platform::Application {
explicit GlfwApplicationTest(const Arguments& arguments): Platform::Application{arguments} { explicit GlfwApplicationTest(const Arguments& arguments): Platform::Application{arguments} {
Debug{} << "window size" << windowSize() << framebufferSize() << dpiScaling(); Debug{} << "window size" << windowSize()
#ifdef MAGNUM_TARGET_GL
<< framebufferSize()
#endif
<< dpiScaling();
} }
/* For testing HiDPI resize events */ /* For testing HiDPI resize events */

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

@ -34,7 +34,11 @@ namespace Magnum { namespace Platform { namespace Test { namespace {
struct Sdl2ApplicationTest: Platform::Application { struct Sdl2ApplicationTest: Platform::Application {
/* For testing resize events */ /* For testing resize events */
explicit Sdl2ApplicationTest(const Arguments& arguments): Platform::Application{arguments, Configuration{}.setWindowFlags(Configuration::WindowFlag::Resizable)} { explicit Sdl2ApplicationTest(const Arguments& arguments): Platform::Application{arguments, Configuration{}.setWindowFlags(Configuration::WindowFlag::Resizable)} {
Debug{} << "window size" << windowSize() << framebufferSize() << dpiScaling(); Debug{} << "window size" << windowSize()
#ifdef MAGNUM_TARGET_GL
<< framebufferSize()
#endif
<< dpiScaling();
} }
void exitEvent(ExitEvent& event) override { void exitEvent(ExitEvent& event) override {

Loading…
Cancel
Save