hedgewars/uStore.pas
branchios-revival
changeset 11409 e0600c5964c7
parent 11408 55fc715435ea
child 11507 bd9a2f1b0080
equal deleted inserted replaced
11408:55fc715435ea 11409:e0600c5964c7
   743     //SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 2);
   743     //SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 2);
   744     //SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 0);
   744     //SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 0);
   745     if SDLGLcontext = nil then
   745     if SDLGLcontext = nil then
   746         SDLGLcontext:= SDL_GL_CreateContext(SDLwindow);
   746         SDLGLcontext:= SDL_GL_CreateContext(SDLwindow);
   747     SDLTry(SDLGLcontext <> nil, 'SDLGLcontext', true);
   747     SDLTry(SDLGLcontext <> nil, 'SDLGLcontext', true);
   748  {$IFNDEF MOBILE}
       
   749     SDLTry(SDL_GL_SetSwapInterval(1) = 0, 'SDL_GL_SetSwapInterval', true);
       
   750  {$ELSE}
       
   751     SDL_GL_SetSwapInterval(1);
   748     SDL_GL_SetSwapInterval(1);
   752  {$ENDIF}
       
   753 
   749 
   754     RendererSetup();
   750     RendererSetup();
   755 
   751 
   756 // gl2 init/matrix code was here, but removed
   752 // gl2 init/matrix code was here, but removed
   757 end;
   753 end;