hedgewars/uStore.pas
changeset 15310 272dc9967fd3
parent 14747 7dfc6ed13337
child 15334 8951eaad20e5
equal deleted inserted replaced
15309:9583c3371371 15310:272dc9967fd3
   859     SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 6);
   859     SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 6);
   860     SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 5);
   860     SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 5);
   861     SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 0);         // no depth buffer
   861     SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 0);         // no depth buffer
   862     SDL_GL_SetAttribute(SDL_GL_ALPHA_SIZE, 0);         // no alpha channel
   862     SDL_GL_SetAttribute(SDL_GL_ALPHA_SIZE, 0);         // no alpha channel
   863     SDL_GL_SetAttribute(SDL_GL_BUFFER_SIZE, 16);       // buffer should be 16
   863     SDL_GL_SetAttribute(SDL_GL_BUFFER_SIZE, 16);       // buffer should be 16
   864     SDL_GL_SetAttribute(SDL_GL_ACCELERATED_VISUAL, 1); // prefer hw rendering
   864 {$IFNDEF DARWIN}
       
   865     SDL_GL_SetAttribute(SDL_GL_ACCELERATED_VISUAL, 1); // force hw rendering except on macOS
       
   866 {$ENDIF}
   865 end;
   867 end;
   866 
   868 
   867 procedure SetupOpenGL;
   869 procedure SetupOpenGL;
   868 begin
   870 begin
   869     AddFileLog('Setting up OpenGL (using driver: ' + shortstring(SDL_GetCurrentVideoDriver()) + ')');
   871     AddFileLog('Setting up OpenGL (using driver: ' + shortstring(SDL_GetCurrentVideoDriver()) + ')');