From 4ab2c210277be6cf16f86e2fcf4fa5a6c090b45e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 23 Oct 2012 03:51:06 +0300 Subject: Add support for OpenGL debug extensions. --- src/mgl.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'src/mgl.h') 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 *); -- cgit v1.2.3-70-g09d2