# HG changeset patch # User raptor # Date 1565711424 21600 # Node ID 35e976e48b0bf9152d611b802cc6eb8ffb415b41 # Parent 9c03b3cd6d16e8a11e1b38673e083a466ffef223 Make hardware acceleration optional on MacOS X diff -r 9c03b3cd6d16 -r 35e976e48b0b hedgewars/uStore.pas --- a/hedgewars/uStore.pas Mon Jan 14 15:11:15 2019 -0500 +++ b/hedgewars/uStore.pas Tue Aug 13 09:50:24 2019 -0600 @@ -851,7 +851,9 @@ SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 0); // no depth buffer SDL_GL_SetAttribute(SDL_GL_ALPHA_SIZE, 0); // no alpha channel SDL_GL_SetAttribute(SDL_GL_BUFFER_SIZE, 16); // buffer should be 16 - SDL_GL_SetAttribute(SDL_GL_ACCELERATED_VISUAL, 1); // prefer hw rendering +{$IFNDEF DARWIN} + SDL_GL_SetAttribute(SDL_GL_ACCELERATED_VISUAL, 1); // force hw rendering except on macOS +{$ENDIF} end; procedure SetupOpenGL;