summaryrefslogtreecommitdiff
path: root/src/graphics.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/graphics.cpp')
-rw-r--r--src/graphics.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/graphics.cpp b/src/graphics.cpp
index 188ad85d6..387566013 100644
--- a/src/graphics.cpp
+++ b/src/graphics.cpp
@@ -141,8 +141,11 @@ bool Graphics::setOpenGLMode()
{
#ifdef USE_OPENGL
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
- if (!(mWindow = SDL_SetVideoMode(mWidth, mHeight, mBpp, getOpenGLFlags())))
+ if (!(mWindow = graphicsManager.createWindow(mWidth, mHeight,
+ mBpp, getOpenGLFlags())))
+ {
return false;
+ }
#ifdef __APPLE__
if (mSync)