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,
GLsizei length,
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) type;

View File

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