mesa: fix _mesa_DebugMessageCallbackARB() to silence warnings
authorBrian Paul <brianp@vmware.com>
Mon, 12 Mar 2012 18:44:48 +0000 (12:44 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 12 Mar 2012 18:54:25 +0000 (12:54 -0600)
Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/mesa/main/errors.c

index 22561003a6f3590f98eccf11710b0411cdf7da11..fcf873f18c285cb89cabd9e2ce075e9735cbbd98 100644 (file)
@@ -718,10 +718,10 @@ _mesa_DebugMessageControlARB(GLenum source, GLenum type, GLenum severity,
 }
 
 static void GLAPIENTRY
-_mesa_DebugMessageCallbackARB(GLvoid *callback, GLvoid *userParam)
+_mesa_DebugMessageCallbackARB(GLDEBUGPROCARB callback, GLvoid *userParam)
 {
    GET_CURRENT_CONTEXT(ctx);
-   ctx->Debug.Callback = (GLDEBUGPROCARB)callback;
+   ctx->Debug.Callback = callback;
    ctx->Debug.CallbackData = userParam;
 }