diff options
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/main/errors.c | 2 | ||||
-rw-r--r-- | src/mesa/main/errors.h | 2 | ||||
-rw-r--r-- | src/mesa/main/getstring.c | 2 | ||||
-rw-r--r-- | src/mesa/main/mtypes.h | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/main/errors.c b/src/mesa/main/errors.c index 465420766f7..5a0758d0b9a 100644 --- a/src/mesa/main/errors.c +++ b/src/mesa/main/errors.c @@ -659,7 +659,7 @@ _mesa_DebugMessageControlARB(GLenum gl_source, GLenum gl_type, } void GLAPIENTRY -_mesa_DebugMessageCallbackARB(GLDEBUGPROCARB callback, GLvoid *userParam) +_mesa_DebugMessageCallbackARB(GLDEBUGPROCARB callback, const void *userParam) { GET_CURRENT_CONTEXT(ctx); ctx->Debug.Callback = callback; diff --git a/src/mesa/main/errors.h b/src/mesa/main/errors.h index 4b376fb6075..5b4f36f5567 100644 --- a/src/mesa/main/errors.h +++ b/src/mesa/main/errors.h @@ -101,7 +101,7 @@ _mesa_DebugMessageControlARB(GLenum source, GLenum type, GLenum severity, GLboolean enabled); void GLAPIENTRY _mesa_DebugMessageCallbackARB(GLDEBUGPROCARB callback, - GLvoid *userParam); + const void *userParam); #ifdef __cplusplus } diff --git a/src/mesa/main/getstring.c b/src/mesa/main/getstring.c index 39fd260dcf7..0e075427fa0 100644 --- a/src/mesa/main/getstring.c +++ b/src/mesa/main/getstring.c @@ -262,7 +262,7 @@ _mesa_GetPointerv( GLenum pname, GLvoid **params ) case GL_DEBUG_CALLBACK_USER_PARAM_ARB: if (!_mesa_is_desktop_gl(ctx)) goto invalid_pname; - *params = ctx->Debug.CallbackData; + *params = (GLvoid *) ctx->Debug.CallbackData; break; default: goto invalid_pname; diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index f8b09df56e7..ea139ea58f9 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -3330,7 +3330,7 @@ struct gl_debug_namespace struct gl_debug_state { GLDEBUGPROCARB Callback; - GLvoid *CallbackData; + const void *CallbackData; GLboolean SyncOutput; GLboolean Defaults[MESA_DEBUG_SEVERITY_COUNT][MESA_DEBUG_SOURCE_COUNT][MESA_DEBUG_TYPE_COUNT]; struct gl_debug_namespace Namespaces[MESA_DEBUG_SOURCE_COUNT][MESA_DEBUG_TYPE_COUNT]; |