Browse Source

Platform: fix WindowlessWglApplication on non-deprecated builds.

pull/249/head
Vladimír Vondruš 8 years ago
parent
commit
44f829acbd
  1. 2
      src/Magnum/Platform/WindowlessWglApplication.cpp

2
src/Magnum/Platform/WindowlessWglApplication.cpp

@ -251,7 +251,7 @@ void WindowlessWglApplication::createContext(const Configuration& configuration)
}
bool WindowlessWglApplication::tryCreateContext(const Configuration& configuration) {
CORRADE_ASSERT(_context->version() == Version::None, "Platform::WindowlessWglApplication::tryCreateContext(): context already created", false);
CORRADE_ASSERT(_context->version() == GL::Version::None, "Platform::WindowlessWglApplication::tryCreateContext(): context already created", false);
WindowlessWglContext glContext{configuration, _context.get()};
if(!glContext.isCreated() || !glContext.makeCurrent() || !_context->tryCreate())

Loading…
Cancel
Save