Make hardware acceleration optional on MacOS X
authorraptor <buckyballreaction@gmail.com>
Tue, 13 Aug 2019 09:50:24 -0600
changeset 15331 272dc9967fd3
parent 15330 9583c3371371
child 15332 e1d11d8dafdd
Make hardware acceleration optional on MacOS X
hedgewars/uStore.pas
--- a/hedgewars/uStore.pas	Mon Aug 12 21:20:00 2019 +0300
+++ b/hedgewars/uStore.pas	Tue Aug 13 09:50:24 2019 -0600
@@ -861,7 +861,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;