DEADSOFTWARE

opengl: fix building on non osx
authorDeaDDooMER <deaddoomer@deadsoftware.ru>
Thu, 19 Mar 2020 17:27:59 +0000 (20:27 +0300)
committerDeaDDooMER <deaddoomer@deadsoftware.ru>
Thu, 19 Mar 2020 17:27:59 +0000 (20:27 +0300)
src/gl/render.c

index e9dc5b5addb443537778fc50ed596e4a0f05244b..c1260da8f3f8aebbcb67b00d299922a6d606e6b9 100644 (file)
 #include "view.h"
 #include "switch.h" // sw_secrets
 
-#include <OpenGL/GL.h>
+#ifdef __APPLE__
+#  include <OpenGL/gl.h>
+#else
+#  include <GL/gl.h>
+#endif
 #include <stdlib.h> // malloc free abs
 #include <assert.h> // assert
 #include <SDL.h>
@@ -1723,4 +1727,4 @@ void R_loadsky (int sky) {
   s[4] = '0' + sky;
   R_gl_free_image(&horiz);
   horiz = R_gl_loadimage(s);
-}
\ No newline at end of file
+}