From 8f35ebaedf896eee09f2e13368832f600c1f0d45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Fri, 9 Oct 2015 23:40:25 +0200 Subject: [PATCH] Platform: actually create the fallback context in Sdl2Application. Apparently this was broken ever since. Heh. --- src/Magnum/Platform/Sdl2Application.cpp | 3 +++ 1 file changed, 3 insertions(+) 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