diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-09-15 13:06:42 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-09-15 13:06:42 +0300 |
commit | 1b06805d4c1bf43b9694dbcdd568112a75293cab (patch) | |
tree | bfada70f33738f1f98374a8e44b1ce612daa4844 | |
parent | e4e5017ac7d94682e7ba0792e7107faafbfb8f7b (diff) | |
download | manaverse-1b06805d4c1bf43b9694dbcdd568112a75293cab.tar.gz manaverse-1b06805d4c1bf43b9694dbcdd568112a75293cab.tar.bz2 manaverse-1b06805d4c1bf43b9694dbcdd568112a75293cab.tar.xz manaverse-1b06805d4c1bf43b9694dbcdd568112a75293cab.zip |
fix best mode detection.
-rw-r--r-- | src/graphicsmanager.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/graphicsmanager.cpp b/src/graphicsmanager.cpp index 8891c1856..423b08202 100644 --- a/src/graphicsmanager.cpp +++ b/src/graphicsmanager.cpp @@ -150,7 +150,10 @@ int GraphicsManager::detectGraphics() logger->log1("enable opengl mode"); int textureSampler = 0; int compressTextures = 0; - createWindow(100, 100, 0, SDL_ANYFORMAT | SDL_OPENGL); + mainGraphics = new NormalOpenGLGraphics; + SDL_Window *const window = createWindow(100, 100, 0, + SDL_ANYFORMAT | SDL_OPENGL); + mainGraphics->setWindow(window, 100, 100); initOpenGL(); logVersion(); |