mesa: remove const from glDebugMessageCallbackARB() function parameter
authorBrian Paul <brianp@vmware.com>
Wed, 26 Jun 2013 17:09:21 +0000 (11:09 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 26 Jun 2013 19:12:01 +0000 (13:12 -0600)
The new 20130624 version of glext.h removed the const qualifier on
the 'userParam' parameter.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/mapi/glapi/gen/ARB_debug_output.xml
src/mesa/main/errors.c
src/mesa/main/errors.h

index 11f268dc6405b0e9b0b32ac287cefc145de66117..f2877a4f7d3494f71a940ed5784abbfd8dc5a976 100644 (file)
@@ -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">
index cc652bac8f8d0607e0a600be911df153c2afbfec..465420766f792fcd630272331282232ed15ba087 100644 (file)
@@ -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
index 7e7503aa984aca63c16290a319e3b67a7417ba23..4b376fb607574acbc658601d863e8c77d1f3731a 100644 (file)
@@ -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
 }