summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2010-12-23 16:43:15 -0800
committerVinson Lee <[email protected]>2010-12-23 16:44:42 -0800
commit38eff56f7eb6c64b153d612ea6ae31bd78149a41 (patch)
treeea98913f6c3219cc3120ae87148077cc31e0586b /src/mesa/main
parent7f178ffbf151b08f6d555187ac0f5ec21768d8c0 (diff)
mesa: Assert _mesa_DeleteFragmentShaderATI doesn't ever free static DummyShader.
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/atifragshader.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/main/atifragshader.c b/src/mesa/main/atifragshader.c
index ae2feb3229a..9db5b88d3ef 100644
--- a/src/mesa/main/atifragshader.c
+++ b/src/mesa/main/atifragshader.c
@@ -316,6 +316,7 @@ _mesa_DeleteFragmentShaderATI(GLuint id)
if (prog) {
prog->RefCount--;
if (prog->RefCount <= 0) {
+ assert(prog != &DummyShader);
free(prog);
}
}