summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-07-18 12:15:10 +0300
committerAndrei Karas <akaras@inbox.ru>2014-07-18 12:15:10 +0300
commite6afa441a57718205c1f62bcbc0a5443fd513aa3 (patch)
treed1fa9ded5d33031a338a45e4947b9f378332dfe2
parentdac85c38849fca61253fe8ed46a06be3acd0bcad (diff)
downloadManaVerse-e6afa441a57718205c1f62bcbc0a5443fd513aa3.tar.gz
ManaVerse-e6afa441a57718205c1f62bcbc0a5443fd513aa3.tar.bz2
ManaVerse-e6afa441a57718205c1f62bcbc0a5443fd513aa3.tar.xz
ManaVerse-e6afa441a57718205c1f62bcbc0a5443fd513aa3.zip
Fix first time OpenGL renderer detection with SDL2.
-rw-r--r--src/graphicsmanager.cpp1
1 files changed, 1 insertions, 0 deletions
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();