summaryrefslogtreecommitdiff
path: root/src/render
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-06-19 19:56:27 +0300
committerAndrei Karas <akaras@inbox.ru>2014-06-19 21:57:39 +0300
commit6b1d0fde009bdf8ac1e4b54c6c27254fdec4b58d (patch)
tree77e4aa775f069e90cdabd6d07db671aa1df5ad41 /src/render
parent17f8465e4358d43accfb0b486b87c18e7dedd83b (diff)
downloadmanaplus-6b1d0fde009bdf8ac1e4b54c6c27254fdec4b58d.tar.gz
manaplus-6b1d0fde009bdf8ac1e4b54c6c27254fdec4b58d.tar.bz2
manaplus-6b1d0fde009bdf8ac1e4b54c6c27254fdec4b58d.tar.xz
manaplus-6b1d0fde009bdf8ac1e4b54c6c27254fdec4b58d.zip
Add some more OpenGL functions from GL_KHR_debug.
Diffstat (limited to 'src/render')
-rw-r--r--src/render/mgl.cpp3
-rw-r--r--src/render/mgl.h3
-rw-r--r--src/render/mgldefines.h2
-rw-r--r--src/render/mgltypes.h5
4 files changed, 13 insertions, 0 deletions
diff --git a/src/render/mgl.cpp b/src/render/mgl.cpp
index 336a5f71b..55bdc1b84 100644
--- a/src/render/mgl.cpp
+++ b/src/render/mgl.cpp
@@ -97,6 +97,9 @@ defName(glVertexAttribIFormat);
defName(glVertexAttribIPointer);
defName(glInvalidateTexImage);
defName(glCopyImageSubData);
+defName(glPushDebugGroup);
+defName(glPopDebugGroup);
+defName(glObjectLabel);
#ifdef WIN32
defName(wglGetExtensionsString);
diff --git a/src/render/mgl.h b/src/render/mgl.h
index 9cb6ca72f..e3271f71b 100644
--- a/src/render/mgl.h
+++ b/src/render/mgl.h
@@ -100,6 +100,9 @@ defNameE(glVertexAttribIFormat);
defNameE(glVertexAttribIPointer);
defNameE(glInvalidateTexImage);
defNameE(glCopyImageSubData);
+defNameE(glPushDebugGroup);
+defNameE(glPopDebugGroup);
+defNameE(glObjectLabel);
#ifdef WIN32
defNameE(wglGetExtensionsString);
diff --git a/src/render/mgldefines.h b/src/render/mgldefines.h
index 7a65932eb..524d8eca4 100644
--- a/src/render/mgldefines.h
+++ b/src/render/mgldefines.h
@@ -55,6 +55,8 @@
#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
diff --git a/src/render/mgltypes.h b/src/render/mgltypes.h
index 133489d4e..9881ea312 100644
--- a/src/render/mgltypes.h
+++ b/src/render/mgltypes.h
@@ -151,6 +151,11 @@ typedef void (APIENTRY *glCopyImageSubData_t) (GLuint srcName,
GLuint dstName, GLenum dstTarget, GLint dstLevel,
GLint dstX, GLint dstY, GLint dstZ,
GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth);
+typedef void (APIENTRY *glPushDebugGroup_t) (GLenum source, GLuint id,
+ GLsizei length, const GLchar * message);
+typedef void (APIENTRY *glPopDebugGroup_t) (void);
+typedef void (APIENTRY *glObjectLabel_t) (GLenum identifier, GLuint name,
+ GLsizei length, const GLchar *label);
// callback
typedef void (APIENTRY *GLDEBUGPROC_t) (GLenum source, GLenum type, GLuint id,