From 07390a4c8dcde85602c1a91d3773061d67d169ab Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 22 Aug 2013 11:35:54 +0300 Subject: add some more fixes for SDL2 compilation. --- src/mobileopenglgraphics.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/mobileopenglgraphics.cpp') diff --git a/src/mobileopenglgraphics.cpp b/src/mobileopenglgraphics.cpp index 96fcc2304..2aec87498 100644 --- a/src/mobileopenglgraphics.cpp +++ b/src/mobileopenglgraphics.cpp @@ -826,7 +826,11 @@ void MobileOpenGLGraphics::updateScreen() mLastDrawCalls = mDrawCalls; mDrawCalls = 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") -- cgit v1.2.3-60-g2f50