Skip to content

Commit

Permalink
Platform: fix WindowlessWglApplication on non-deprecated builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
mosra committed May 1, 2018
1 parent 51abffb commit 44f829a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Magnum/Platform/WindowlessWglApplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 44f829a

Please sign in to comment.