# HG changeset patch # User antonc27 # Date 1447770636 -3600 # Node ID 55fc715435eacc5bbf157c8e6b8f7386b4d4fa12 # Parent 7ed8fa4a2b6a65181471f59e0b540bb16b0373c9 - Workaround for problems with SDL_GL_SetSwapInterval on iOS diff -r 7ed8fa4a2b6a -r 55fc715435ea 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();