mesa: Assert _mesa_DeleteFragmentShaderATI doesn't ever free static DummyShader.
authorVinson Lee <vlee@vmware.com>
Fri, 24 Dec 2010 00:43:15 +0000 (16:43 -0800)
committerVinson Lee <vlee@vmware.com>
Fri, 24 Dec 2010 00:44:42 +0000 (16:44 -0800)
src/mesa/main/atifragshader.c

index ae2feb3..9db5b88 100644 (file)
@@ -316,6 +316,7 @@ _mesa_DeleteFragmentShaderATI(GLuint id)
       if (prog) {
         prog->RefCount--;
         if (prog->RefCount <= 0) {
+           assert(prog != &DummyShader);
            free(prog);
         }
       }