gl-fun.h: Fix KHR_debug function signatures
This commit is contained in:
parent
902a5e8c76
commit
843a7bf571
|
@ -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;
|
||||
|
|
|
@ -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 */ \
|
||||
|
|
Loading…
Reference in New Issue