diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-07-18 12:15:10 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-07-18 12:15:10 +0300 |
commit | e6afa441a57718205c1f62bcbc0a5443fd513aa3 (patch) | |
tree | d1fa9ded5d33031a338a45e4947b9f378332dfe2 /src | |
parent | dac85c38849fca61253fe8ed46a06be3acd0bcad (diff) | |
download | plus-e6afa441a57718205c1f62bcbc0a5443fd513aa3.tar.gz plus-e6afa441a57718205c1f62bcbc0a5443fd513aa3.tar.bz2 plus-e6afa441a57718205c1f62bcbc0a5443fd513aa3.tar.xz plus-e6afa441a57718205c1f62bcbc0a5443fd513aa3.zip |
Fix first time OpenGL renderer detection with SDL2.
Diffstat (limited to 'src')
-rw-r--r-- | src/graphicsmanager.cpp | 1 |
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(); |