hedgewars/uStore.pas
changeset 11411 0566458ffdfc
parent 11409 e0600c5964c7
child 11507 bd9a2f1b0080
equal deleted inserted replaced
11410:1b9e183841e7 11411:0566458ffdfc
   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     SDLTry(SDL_GL_SetSwapInterval(1) = 0, 'SDL_GL_SetSwapInterval', true);
   748     SDL_GL_SetSwapInterval(1);
   749 
   749 
   750     RendererSetup();
   750     RendererSetup();
   751 
   751 
   752 // gl2 init/matrix code was here, but removed
   752 // gl2 init/matrix code was here, but removed
   753 end;
   753 end;