hedgewars/uStore.pas
branch0.9.25
changeset 15350 35e976e48b0b
parent 14220 3c36a4e66c82
child 15355 8951eaad20e5
equal deleted inserted replaced
14610:9c03b3cd6d16 15350:35e976e48b0b
   849     SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 6);
   849     SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 6);
   850     SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 5);
   850     SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 5);
   851     SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 0);         // no depth buffer
   851     SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 0);         // no depth buffer
   852     SDL_GL_SetAttribute(SDL_GL_ALPHA_SIZE, 0);         // no alpha channel
   852     SDL_GL_SetAttribute(SDL_GL_ALPHA_SIZE, 0);         // no alpha channel
   853     SDL_GL_SetAttribute(SDL_GL_BUFFER_SIZE, 16);       // buffer should be 16
   853     SDL_GL_SetAttribute(SDL_GL_BUFFER_SIZE, 16);       // buffer should be 16
   854     SDL_GL_SetAttribute(SDL_GL_ACCELERATED_VISUAL, 1); // prefer hw rendering
   854 {$IFNDEF DARWIN}
       
   855     SDL_GL_SetAttribute(SDL_GL_ACCELERATED_VISUAL, 1); // force hw rendering except on macOS
       
   856 {$ENDIF}
   855 end;
   857 end;
   856 
   858 
   857 procedure SetupOpenGL;
   859 procedure SetupOpenGL;
   858 begin
   860 begin
   859     AddFileLog('Setting up OpenGL (using driver: ' + shortstring(SDL_GetCurrentVideoDriver()) + ')');
   861     AddFileLog('Setting up OpenGL (using driver: ' + shortstring(SDL_GetCurrentVideoDriver()) + ')');