projects
/
profile
/
ivi
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f178ff
)
mesa: Assert _mesa_DeleteFragmentShaderATI doesn't ever free static DummyShader.
author
Vinson Lee
<vlee@vmware.com>
Fri, 24 Dec 2010 00:43:15 +0000
(16:43 -0800)
committer
Vinson Lee
<vlee@vmware.com>
Fri, 24 Dec 2010 00:44:42 +0000
(16:44 -0800)
src/mesa/main/atifragshader.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/atifragshader.c
b/src/mesa/main/atifragshader.c
index
ae2feb3
..
9db5b88
100644
(file)
--- 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);
}
}