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,
|
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;
|
||||||
|
|
|
@ -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 */ \
|
||||||
|
|
Loading…
Reference in New Issue