From 1b06805d4c1bf43b9694dbcdd568112a75293cab Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 15 Sep 2013 13:06:42 +0300 Subject: fix best mode detection. --- src/graphicsmanager.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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(); -- cgit v1.2.3-70-g09d2