Module: Mesa
Branch: master
Commit: 38eff56f7eb6c64b153d612ea6ae31bd78149a41
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=38eff56f7eb6c64b153d612ea6ae31bd78149a41

Author: Vinson Lee <[email protected]>
Date:   Thu Dec 23 16:43:15 2010 -0800

mesa: Assert _mesa_DeleteFragmentShaderATI doesn't ever free static DummyShader.

---

 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 ae2feb3..9db5b88 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);
         }
       }

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to