summaryrefslogtreecommitdiff
path: root/src/safeopenglgraphics.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/safeopenglgraphics.cpp')
-rw-r--r--src/safeopenglgraphics.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/safeopenglgraphics.cpp b/src/safeopenglgraphics.cpp
index 4411c5130..f04ffb3bc 100644
--- a/src/safeopenglgraphics.cpp
+++ b/src/safeopenglgraphics.cpp
@@ -377,7 +377,11 @@ void SafeOpenGLGraphics::updateScreen()
BLOCK_START("Graphics::updateScreen")
glFlush();
glFinish();
+#ifdef USE_SDL2
+ SDL_GL_SwapWindow(mWindow);
+#else
SDL_GL_SwapBuffers();
+#endif
BLOCK_END("Graphics::updateScreen")
}