[Mesa-dev] [PATCH 1/2] mesa: remove const from glDebugMessageCallbackARB() function parameter
Brian Paul
brianp at vmware.com
Wed Jun 26 10:19:47 PDT 2013
The new 20130624 version of glext.h removed the const qualifier on
the 'userParam' parameter.
---
src/mapi/glapi/gen/ARB_debug_output.xml | 2 +-
src/mesa/main/errors.c | 4 ++--
src/mesa/main/errors.h | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/mapi/glapi/gen/ARB_debug_output.xml b/src/mapi/glapi/gen/ARB_debug_output.xml
index 11f268d..f2877a4 100644
--- a/src/mapi/glapi/gen/ARB_debug_output.xml
+++ b/src/mapi/glapi/gen/ARB_debug_output.xml
@@ -72,7 +72,7 @@
<function name="DebugMessageCallbackARB" offset="assign">
<param name="callback" type="GLDEBUGPROCARB"/>
- <param name="userParam" type="const GLvoid *"/>
+ <param name="userParam" type="GLvoid *"/>
</function>
<function name="GetDebugMessageLogARB" offset="assign">
diff --git a/src/mesa/main/errors.c b/src/mesa/main/errors.c
index cc652ba..4654207 100644
--- a/src/mesa/main/errors.c
+++ b/src/mesa/main/errors.c
@@ -659,11 +659,11 @@ _mesa_DebugMessageControlARB(GLenum gl_source, GLenum gl_type,
}
void GLAPIENTRY
-_mesa_DebugMessageCallbackARB(GLDEBUGPROCARB callback, const GLvoid *userParam)
+_mesa_DebugMessageCallbackARB(GLDEBUGPROCARB callback, GLvoid *userParam)
{
GET_CURRENT_CONTEXT(ctx);
ctx->Debug.Callback = callback;
- ctx->Debug.CallbackData = (void *) userParam;
+ ctx->Debug.CallbackData = userParam;
}
void
diff --git a/src/mesa/main/errors.h b/src/mesa/main/errors.h
index 7e7503a..4b376fb 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,
- const GLvoid *userParam);
+ GLvoid *userParam);
#ifdef __cplusplus
}
--
1.7.10.4
More information about the mesa-dev
mailing list