summaryrefslogtreecommitdiff
path: root/src/normalopenglgraphics.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/normalopenglgraphics.cpp')
-rw-r--r--src/normalopenglgraphics.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/normalopenglgraphics.cpp b/src/normalopenglgraphics.cpp
index bb4a03860..ac933a6ac 100644
--- a/src/normalopenglgraphics.cpp
+++ b/src/normalopenglgraphics.cpp
@@ -1034,7 +1034,11 @@ void NormalOpenGLGraphics::updateScreen()
mLastBinds = mBinds;
mBinds = 0;
#endif
+#ifdef USE_SDL2
+ SDL_GL_SwapWindow(mWindow);
+#else
SDL_GL_SwapBuffers();
+#endif
// may be need clear?
// glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT);
BLOCK_END("Graphics::updateScreen")