hedgewars/uStore.pas
branchsdl2transition
changeset 9684 8113075dc7cc
parent 9682 aa2431ed87b2
child 9798 f2b18754742f
equal deleted inserted replaced
9682:aa2431ed87b2 9684:8113075dc7cc
  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