gl-fun.h: Fix KHR_debug function signatures

This commit is contained in:
Jonas Kulla 2014-06-24 23:33:58 +02:00
parent 902a5e8c76
commit 843a7bf571
2 changed files with 5 additions and 4 deletions

View File

@ -60,9 +60,10 @@ static void APIENTRY arbDebugFunc(GLenum source,
GLenum severity, GLenum severity,
GLsizei length, GLsizei length,
const GLchar* message, const GLchar* message,
GLvoid* userParam) const void* userParam)
{ {
DebugLoggerPrivate *p = static_cast<DebugLoggerPrivate*>(userParam); DebugLoggerPrivate *p =
static_cast<DebugLoggerPrivate*>(const_cast<void*>(userParam));
(void) source; (void) source;
(void) type; (void) type;

View File

@ -51,8 +51,8 @@ typedef void (APIENTRYP PFNGLTEXPARAMETERIPROC) (GLenum target, GLenum pname, GL
typedef void (APIENTRYP PFNGLACTIVETEXTUREPROC) (GLenum texture); typedef void (APIENTRYP PFNGLACTIVETEXTUREPROC) (GLenum texture);
/* Debug callback */ /* Debug callback */
typedef void (APIENTRY * GLDEBUGPROC) (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar* message, GLvoid* userParam); typedef void (APIENTRY * GLDEBUGPROC) (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar* message, const void *userParam);
typedef void (APIENTRYP PFNGLDEBUGMESSAGECALLBACKPROC) (GLDEBUGPROC callback, const GLvoid *userParam); typedef void (APIENTRYP PFNGLDEBUGMESSAGECALLBACKPROC) (GLDEBUGPROC callback, const void *userParam);
#define GL_20_FUN \ #define GL_20_FUN \
/* Etc */ \ /* Etc */ \