OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d0f430
)
mesa: Free linked shaders when deleting the shader program.
author
Eric Anholt
<eric@anholt.net>
Wed, 18 Aug 2010 21:12:52 +0000
(14:12 -0700)
committer
Eric Anholt
<eric@anholt.net>
Wed, 18 Aug 2010 21:16:07 +0000
(14:16 -0700)
src/mesa/main/shaderobj.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/shaderobj.c
b/src/mesa/main/shaderobj.c
index
863d50f
..
1755e8a
100644
(file)
--- a/
src/mesa/main/shaderobj.c
+++ b/
src/mesa/main/shaderobj.c
@@
-314,6
+314,12
@@
_mesa_free_shader_program_data(GLcontext *ctx,
free(shProg->TransformFeedback.VaryingNames);
shProg->TransformFeedback.VaryingNames = NULL;
shProg->TransformFeedback.NumVarying = 0;
+
+
+ for (i = 0; i < shProg->_NumLinkedShaders; i++) {
+ ctx->Driver.DeleteShader(ctx, shProg->_LinkedShaders[i]);
+ }
+ shProg->_NumLinkedShaders = 0;
}