Make hardware acceleration optional on MacOS X 0.9.25
authorraptor <buckyballreaction@gmail.com>
Tue, 13 Aug 2019 09:50:24 -0600
branch0.9.25
changeset 15350 35e976e48b0b
parent 14610 9c03b3cd6d16
child 15351 0590e7f7c8e0
Make hardware acceleration optional on MacOS X
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;