diff --git a/src/Magnum/Platform/Sdl2Application.cpp b/src/Magnum/Platform/Sdl2Application.cpp index 9217dd5d0..9a5bfee57 100644 --- a/src/Magnum/Platform/Sdl2Application.cpp +++ b/src/Magnum/Platform/Sdl2Application.cpp @@ -191,6 +191,9 @@ bool Sdl2Application::tryCreateContext(const Configuration& configuration) { Error() << "Platform::Sdl2Application::tryCreateContext(): cannot create window:" << SDL_GetError(); return false; } + + /* Create compatibility context */ + _glContext = SDL_GL_CreateContext(_window); } #endif