GIT
/
REPO
/
FRED-BOY
Projects
/
flatwaifu.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5be094
)
opengl: fix building on non osx
author
DeaDDooMER <deaddoomer@deadsoftware.ru>
Thu, 19 Mar 2020 17:27:59 +0000
(20:27 +0300)
committer
DeaDDooMER <deaddoomer@deadsoftware.ru>
Thu, 19 Mar 2020 17:27:59 +0000
(20:27 +0300)
src/gl/render.c
patch
|
blob
|
history
diff --git
a/src/gl/render.c
b/src/gl/render.c
index e9dc5b5addb443537778fc50ed596e4a0f05244b..c1260da8f3f8aebbcb67b00d299922a6d606e6b9 100644
(file)
--- a/
src/gl/render.c
+++ b/
src/gl/render.c
@@
-21,7
+21,11
@@
#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
+}
DEADSOFTWARE 2012-2025