]> git.jsancho.org Git - lugaru.git/blobdiff - Source/GameDraw.cpp
Don't disable all warnings...
[lugaru.git] / Source / GameDraw.cpp
index b4a5c86de5a8d0dd0f9f03755f973476589038b8..f2c59ae71e7361e9061b92afb85c10cd9c84558e 100644 (file)
@@ -3958,8 +3958,12 @@ int Game::DrawGLScene(GLvoid)
        if(drawmode!=motionblurmode||mainmenu){
 #ifdef WIN32
                if(drawmode!=motionblurmode) SwapBuffers( hDC);
-#else
+#elif PLATFORM_MACOSX
                if(drawmode!=motionblurmode)aglSwapBuffers(gaglContext); // send swap command
+#elif USE_SDL
+        if(drawmode!=motionblurmode)SDL_GL_SwapBuffers();
+#else
+        #error define your platform.
 #endif // send swap command
        }