summaryrefslogtreecommitdiff
path: root/src/mgl.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-23 03:51:06 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-23 13:13:02 +0300
commit4ab2c210277be6cf16f86e2fcf4fa5a6c090b45e (patch)
tree3ccee6444e6c044e895d3bb70942f1547addb230 /src/mgl.h
parent89106a96cd86042415d19f307a4ade5f1fae8b5d (diff)
downloadplus-4ab2c210277be6cf16f86e2fcf4fa5a6c090b45e.tar.gz
plus-4ab2c210277be6cf16f86e2fcf4fa5a6c090b45e.tar.bz2
plus-4ab2c210277be6cf16f86e2fcf4fa5a6c090b45e.tar.xz
plus-4ab2c210277be6cf16f86e2fcf4fa5a6c090b45e.zip
Add support for OpenGL debug extensions.
Diffstat (limited to 'src/mgl.h')
-rw-r--r--src/mgl.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/mgl.h b/src/mgl.h
index f8d2d8db9..6f10078a0 100644
--- a/src/mgl.h
+++ b/src/mgl.h
@@ -50,6 +50,28 @@
#define GL_MAX_ELEMENTS_INDICES 0x80E9
#endif
+#ifndef GL_DEBUG_OUTPUT
+#define GL_DEBUG_OUTPUT_SYNCHRONOUS 0x8242
+#define GL_DEBUG_OUTPUT 0x92E0
+#define GL_DEBUG_SOURCE_API 0x8246
+#define GL_DEBUG_SOURCE_WINDOW_SYSTEM 0x8247
+#define GL_DEBUG_SOURCE_SHADER_COMPILER 0x8248
+#define GL_DEBUG_SOURCE_THIRD_PARTY 0x8249
+#define GL_DEBUG_SOURCE_APPLICATION 0x824A
+#define GL_DEBUG_SOURCE_OTHER 0x824B
+#define GL_DEBUG_TYPE_ERROR 0x824C
+#define GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR 0x824D
+#define GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR 0x824E
+#define GL_DEBUG_TYPE_PORTABILITY 0x824F
+#define GL_DEBUG_TYPE_PERFORMANCE 0x8250
+#define GL_DEBUG_TYPE_OTHER 0x8251
+#define GL_DEBUG_TYPE_MARKER 0x8268
+#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
+
#define defNameE(name) extern name##_t m##name
typedef void (APIENTRY *glGenRenderbuffers_t)(GLsizei, GLuint *);