equal
deleted
inserted
replaced
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()) + ')'); |