From e6afa441a57718205c1f62bcbc0a5443fd513aa3 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 18 Jul 2014 12:15:10 +0300 Subject: Fix first time OpenGL renderer detection with SDL2. --- src/graphicsmanager.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/graphicsmanager.cpp b/src/graphicsmanager.cpp index b5907d785..fca6cd014 100644 --- a/src/graphicsmanager.cpp +++ b/src/graphicsmanager.cpp @@ -161,6 +161,7 @@ int GraphicsManager::detectGraphics() SDL_Window *const window = createWindow(100, 100, 0, SDL_ANYFORMAT | SDL_OPENGL); mainGraphics->setWindow(window, 100, 100); + mainGraphics->createGLContext(); initOpenGL(); logVersion(); -- cgit v1.2.3-70-g09d2