hedgewars/uStore.pas
branchios-revival
changeset 11408 55fc715435ea
parent 11373 011c5cc195cc
child 11409 e0600c5964c7
equal deleted inserted replaced
11407:7ed8fa4a2b6a 11408:55fc715435ea
   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}
   748     SDLTry(SDL_GL_SetSwapInterval(1) = 0, 'SDL_GL_SetSwapInterval', true);
   749     SDLTry(SDL_GL_SetSwapInterval(1) = 0, 'SDL_GL_SetSwapInterval', true);
       
   750  {$ELSE}
       
   751     SDL_GL_SetSwapInterval(1);
       
   752  {$ENDIF}
   749 
   753 
   750     RendererSetup();
   754     RendererSetup();
   751 
   755 
   752 // gl2 init/matrix code was here, but removed
   756 // gl2 init/matrix code was here, but removed
   753 end;
   757 end;