From 38eff56f7eb6c64b153d612ea6ae31bd78149a41 Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Thu, 23 Dec 2010 16:43:15 -0800 Subject: [PATCH] mesa: Assert _mesa_DeleteFragmentShaderATI doesn't ever free static DummyShader. --- src/mesa/main/atifragshader.c | 1 + 1 file changed, 1 insertion(+) 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); } } -- 2.7.4