diff options
author | Vinson Lee <[email protected]> | 2010-12-23 16:43:15 -0800 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2010-12-23 16:44:42 -0800 |
commit | 38eff56f7eb6c64b153d612ea6ae31bd78149a41 (patch) | |
tree | ea98913f6c3219cc3120ae87148077cc31e0586b /src | |
parent | 7f178ffbf151b08f6d555187ac0f5ec21768d8c0 (diff) |
mesa: Assert _mesa_DeleteFragmentShaderATI doesn't ever free static DummyShader.
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/main/atifragshader.c | 1 |
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); } } |