mesa: implement glGetUniformiv() with new ctx->Driver function
authorBrian Paul <brian.paul@tungstengraphics.com>
Tue, 8 Jul 2008 22:12:01 +0000 (16:12 -0600)
committerKeith Whitwell <keith@tungstengraphics.com>
Mon, 22 Sep 2008 05:13:56 +0000 (22:13 -0700)
The old implementation could overwrite the caller's param buffer.

src/mesa/main/shaders.c

index f0db0d2a81833c886b81c189637646241c68cc37..a2670fda32a586c32f79a9e1dfd9c377c4e72aea 100644 (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);