mesa: more const qualifiers to match the latest glext.h

For some reason regular gcc on Linux didn't catch these but the mingw
compiler did (generated errors, not warnings).

v2: include the changes in src/mapi/ too
This commit is contained in:
Brian Paul
2012-06-27 10:52:55 -06:00
parent 827bdee7d1
commit 9881bf6e69
10 changed files with 14 additions and 13 deletions

View File

@@ -718,11 +718,11 @@ _mesa_DebugMessageControlARB(GLenum source, GLenum type, GLenum severity,
}
static void GLAPIENTRY
_mesa_DebugMessageCallbackARB(GLDEBUGPROCARB callback, GLvoid *userParam)
_mesa_DebugMessageCallbackARB(GLDEBUGPROCARB callback, const GLvoid *userParam)
{
GET_CURRENT_CONTEXT(ctx);
ctx->Debug.Callback = callback;
ctx->Debug.CallbackData = userParam;
ctx->Debug.CallbackData = (void *) userParam;
}
void