hedgewars/uStore.pas
changeset 7866 58d10edc5d21
parent 7754 e81dc9bef8b8
child 8022 10b3b93c1f56
child 8026 4a4f21070479
child 8027 e5ba3dd12531
--- a/hedgewars/uStore.pas	Sun Oct 28 22:52:08 2012 +0100
+++ b/hedgewars/uStore.pas	Sun Oct 28 23:53:38 2012 +0100
@@ -53,7 +53,7 @@
 {$ENDIF}
 
 procedure WarpMouse(x, y: Word); inline;
-procedure SwapBuffers; inline;
+procedure SwapBuffers; {$IFDEF USE_VIDEO_RECORDING}cdecl{$ELSE}inline{$ENDIF};
 
 implementation
 uses uMisc, uConsole, uMobile, uVariables, uUtils, uTextures, uRender, uRenderUtils, uCommands,
@@ -1115,6 +1115,7 @@
     glutInitWindowSize(cScreenWidth, cScreenHeight);
     glutCreateWindow('hedgewars (you don''t see this)'); // we don't need a window, but if this function is not called then OpenGL will not be initialized
     glutHideWindow();
+    glutDisplayFunc(@SwapBuffers); // we don't need a callback, but it's required for GLUT3
     SetupOpenGL();
 end;
 {$ENDIF} // SDL13
@@ -1296,7 +1297,7 @@
 {$ENDIF}
 end;
 
-procedure SwapBuffers; inline;
+procedure SwapBuffers; {$IFDEF USE_VIDEO_RECORDING}cdecl{$ELSE}inline{$ENDIF};
 begin
     if GameType = gmtRecord then
         exit;