mesa: implement glGetUniformiv() with new ctx->Driver function

The old implementation could overwrite the caller's param buffer.
This commit is contained in:
Brian Paul 2008-07-08 16:12:01 -06:00 committed by Keith Whitwell
parent 48cba703fa
commit 6246dd890f
1 changed files with 1 additions and 0 deletions

View File

@ -128,6 +128,7 @@ _mesa_DeleteObjectARB(GLhandleARB obj)
void GLAPIENTRY
_mesa_DeleteProgram(GLuint name)
{
printf("%s name=%u\n", __FUNCTION__, name);
if (name) {
GET_CURRENT_CONTEXT(ctx);
ctx->Driver.DeleteProgram2(ctx, name);