- Workaround for problems with SDL_GL_SetSwapInterval on iOS ios-revival
authorantonc27 <antonc27@mail.ru>
Tue, 17 Nov 2015 15:30:36 +0100
branchios-revival
changeset 11413 55fc715435ea
parent 11412 7ed8fa4a2b6a
child 11414 e0600c5964c7
- Workaround for problems with SDL_GL_SetSwapInterval on iOS
hedgewars/uStore.pas
--- a/hedgewars/uStore.pas	Tue Nov 17 15:12:24 2015 +0100
+++ b/hedgewars/uStore.pas	Tue Nov 17 15:30:36 2015 +0100
@@ -745,7 +745,11 @@
     if SDLGLcontext = nil then
         SDLGLcontext:= SDL_GL_CreateContext(SDLwindow);
     SDLTry(SDLGLcontext <> nil, 'SDLGLcontext', true);
+ {$IFNDEF MOBILE}
     SDLTry(SDL_GL_SetSwapInterval(1) = 0, 'SDL_GL_SetSwapInterval', true);
+ {$ELSE}
+    SDL_GL_SetSwapInterval(1);
+ {$ENDIF}
 
     RendererSetup();