hedgewars/hwengine.pas
changeset 3523 6592fbb969da
parent 3495 a6b4f351d400
child 3525 1d7b056ff866
--- a/hedgewars/hwengine.pas	Sat Jun 19 00:48:47 2010 +0200
+++ b/hedgewars/hwengine.pas	Sun Jun 20 18:35:59 2010 +0200
@@ -140,9 +140,10 @@
                 end;
         end;
 
-    SDL_GL_SwapBuffers();
 {$IFDEF SDL13}
     SDL_RenderPresent();
+{$ELSE}
+    SDL_GL_SwapBuffers();
 {$ENDIF}
 {$IFNDEF IPHONEOS}
     // not going to make captures on the iPhone
@@ -183,8 +184,7 @@
     PrevTime:= SDL_GetTicks;
     while isTerminated = false do
     begin
-{$IFNDEF IPHONEOS}
-// have to remove this cycle because otherwise it segfaults at exit
+
         while SDL_PollEvent(@event) <> 0 do
         begin
             case event.type_ of
@@ -210,7 +210,6 @@
                 SDL_QUITEV: isTerminated:= true
             end; // end case event.type_
         end; // end while SDL_PollEvent(@event) <> 0
-{$ENDIF}
 
         if isTerminated = false then
         begin