summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2019-05-31 20:24:30 +0300
committerAndrei Karas <akaras@inbox.ru>2019-05-31 20:24:30 +0300
commit38370f4636b218e4bc773008694441b8dd53d098 (patch)
tree0848798fc184d81504eb47da164f654c203f629a
parent9107f9659cc25c3e85f2cdd293804a3bd2b5f777 (diff)
downloadmanaverse-38370f4636b218e4bc773008694441b8dd53d098.tar.gz
manaverse-38370f4636b218e4bc773008694441b8dd53d098.tar.bz2
manaverse-38370f4636b218e4bc773008694441b8dd53d098.tar.xz
manaverse-38370f4636b218e4bc773008694441b8dd53d098.zip
Fix redefine GL_GLEXT_VERSION issue in SDL 2
-rw-r--r--src/resources/fboinfo.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/resources/fboinfo.h b/src/resources/fboinfo.h
index 9bd4b8e13..e18e9b938 100644
--- a/src/resources/fboinfo.h
+++ b/src/resources/fboinfo.h
@@ -36,6 +36,10 @@ PRAGMA48(GCC diagnostic pop)
#if defined(__APPLE__)
#include <OpenGL/glext.h>
#elif !defined(__native_client__)
+// avoid SDL 2 issue
+#ifdef GL_GLEXT_VERSION
+#undef GL_GLEXT_VERSION
+#endif
#include <GL/glext.h>
#endif // defined(__APPLE__)
#endif // ANDROID