diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-01-29 18:13:35 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-01-29 18:13:35 +0300 |
commit | 366d596688506c70cbc510392be7f1224e585185 (patch) | |
tree | df47f42c4fb6d240898427c2281b13054076f5ba /src/render/opengl/mgldefines.h | |
parent | b4658b5317715e13f4294e5a8c60e20af8db0744 (diff) | |
download | plus-366d596688506c70cbc510392be7f1224e585185.tar.gz plus-366d596688506c70cbc510392be7f1224e585185.tar.bz2 plus-366d596688506c70cbc510392be7f1224e585185.tar.xz plus-366d596688506c70cbc510392be7f1224e585185.zip |
Fix compilation with different flags and fix redefines in new SDL2.
Diffstat (limited to 'src/render/opengl/mgldefines.h')
-rw-r--r-- | src/render/opengl/mgldefines.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/render/opengl/mgldefines.h b/src/render/opengl/mgldefines.h index f2e2193f3..05d4bafcc 100644 --- a/src/render/opengl/mgldefines.h +++ b/src/render/opengl/mgldefines.h @@ -57,14 +57,19 @@ #define GL_DEBUG_TYPE_PERFORMANCE 0x8250 #define GL_DEBUG_TYPE_OTHER 0x8251 #define GL_DEBUG_TYPE_MARKER 0x8268 -#define GL_DEBUG_TYPE_PUSH_GROUP 0x8269 -#define GL_DEBUG_TYPE_POP_GROUP 0x826a #define GL_DEBUG_SEVERITY_NOTIFICATION 0x826B #define GL_DEBUG_SEVERITY_HIGH 0x9146 #define GL_DEBUG_SEVERITY_MEDIUM 0x9147 #define GL_DEBUG_SEVERITY_LOW 0x9148 #endif +#ifndef GL_DEBUG_TYPE_PUSH_GROUP +#define GL_DEBUG_TYPE_PUSH_GROUP 0x8269 +#endif +#ifndef GL_DEBUG_TYPE_POP_GROUP +#define GL_DEBUG_TYPE_POP_GROUP 0x826a +#endif + #ifndef GL_EXT_debug_label #define GL_PROGRAM_PIPELINE_OBJECT_EXT 0x8A4F #define GL_PROGRAM_OBJECT_EXT 0x8B40 |