diff options
author | José Fonseca <[email protected]> | 2012-03-11 10:47:20 +0000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2012-03-11 16:23:45 +0000 |
commit | fa476782fde96c93c0904bbab3bc4dd44aef8712 (patch) | |
tree | 3427c854a3270dc6e829a20fad7cb4da328fa19b /include | |
parent | bb1d126b2369bc7608c43738693b6f26cd8f4eeb (diff) |
include: Fix glDebugMessageCallbackARB's prototype.
Seems to be a bug in Khronos headers, as
http://www.opengl.org/registry/specs/ARB/debug_output.txt states userParam
is not a const pointer.
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'include')
-rw-r--r-- | include/GL/glext.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/GL/glext.h b/include/GL/glext.h index 09400215bac..113241e77ee 100644 --- a/include/GL/glext.h +++ b/include/GL/glext.h @@ -7573,12 +7573,12 @@ typedef GLsync (APIENTRYP PFNGLCREATESYNCFROMCLEVENTARBPROC) (struct _cl_context #ifdef GL_GLEXT_PROTOTYPES GLAPI void APIENTRY glDebugMessageControlARB (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled); GLAPI void APIENTRY glDebugMessageInsertARB (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf); -GLAPI void APIENTRY glDebugMessageCallbackARB (GLDEBUGPROCARB callback, const GLvoid *userParam); +GLAPI void APIENTRY glDebugMessageCallbackARB (GLDEBUGPROCARB callback, GLvoid *userParam); GLAPI GLuint APIENTRY glGetDebugMessageLogARB (GLuint count, GLsizei bufsize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog); #endif /* GL_GLEXT_PROTOTYPES */ typedef void (APIENTRYP PFNGLDEBUGMESSAGECONTROLARBPROC) (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled); typedef void (APIENTRYP PFNGLDEBUGMESSAGEINSERTARBPROC) (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf); -typedef void (APIENTRYP PFNGLDEBUGMESSAGECALLBACKARBPROC) (GLDEBUGPROCARB callback, const GLvoid *userParam); +typedef void (APIENTRYP PFNGLDEBUGMESSAGECALLBACKARBPROC) (GLDEBUGPROCARB callback, GLvoid *userParam); typedef GLuint (APIENTRYP PFNGLGETDEBUGMESSAGELOGARBPROC) (GLuint count, GLsizei bufsize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog); #endif |