]> git.jsancho.org Git - lugaru.git/commitdiff
Work continues.
authorRyan C. Gordon <icculus@icculus.org>
Fri, 5 Aug 2005 14:32:21 +0000 (14:32 +0000)
committerRyan C. Gordon <icculus@icculus.org>
Fri, 5 Aug 2005 14:32:21 +0000 (14:32 +0000)
Source/Game.h
Source/GameDraw.cpp

index d39b739014624add83b61819f922e4b782c44376..96feef0de2d4d474d553cd3d424f72a173530f57 100644 (file)
 
 extern GLuint rabbittexture;
 
+#ifndef TRUE
+#define TRUE 1
+#endif
+
+#ifndef FALSE
+#define FALSE 0
+#endif
+
 
 class Game             
 {
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
        }