projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e7f5d19
)
st/mesa: Reset the constant buffers before destroying the pipe context.
author
Tilman Sauerbeck
<tilman@code-monkey.de>
Tue, 2 Nov 2010 21:15:15 +0000
(22:15 +0100)
committer
Tilman Sauerbeck
<tilman@code-monkey.de>
Thu, 4 Nov 2010 19:01:25 +0000
(20:01 +0100)
Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de>
src/mesa/state_tracker/st_context.c
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_context.c
b/src/mesa/state_tracker/st_context.c
index
b5ea6d0
..
d0dcdd4
100644
(file)
--- a/
src/mesa/state_tracker/st_context.c
+++ b/
src/mesa/state_tracker/st_context.c
@@
-238,6
+238,11
@@
void st_destroy_context( struct st_context *st )
pipe->set_index_buffer(pipe, NULL);
+ for (i = 0; i < PIPE_SHADER_TYPES; i++) {
+ pipe->set_constant_buffer(pipe, PIPE_SHADER_VERTEX, 0, NULL);
+ pipe_resource_reference(&st->state.constants[PIPE_SHADER_VERTEX], NULL);
+ }
+
_mesa_delete_program_cache(st->ctx, st->pixel_xfer.cache);
_vbo_DestroyContext(st->ctx);