equal
deleted
inserted
replaced
1262 procedure SwapBuffers; {$IFDEF USE_VIDEO_RECORDING}cdecl{$ELSE}inline{$ENDIF}; |
1262 procedure SwapBuffers; {$IFDEF USE_VIDEO_RECORDING}cdecl{$ELSE}inline{$ENDIF}; |
1263 begin |
1263 begin |
1264 if GameType = gmtRecord then |
1264 if GameType = gmtRecord then |
1265 exit; |
1265 exit; |
1266 {$IFDEF SDL2} |
1266 {$IFDEF SDL2} |
1267 SDLTry(SDL_GL_SwapWindow(SDLwindow) <> 0, 'SDL_GL_SwapWindow', true); |
1267 SDL_GL_SwapWindow(SDLwindow); |
1268 {$ELSE} |
1268 {$ELSE} |
1269 SDL_GL_SwapBuffers(); |
1269 SDL_GL_SwapBuffers(); |
1270 {$ENDIF} |
1270 {$ENDIF} |
1271 end; |
1271 end; |
1272 |
1272 |