projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0d554a
)
st/mesa: Unbind all constant buffers
author
Jakob Bornecrantz
<jakob@vmware.com>
Mon, 6 Dec 2010 19:59:49 +0000
(20:59 +0100)
committer
Jakob Bornecrantz
<jakob@vmware.com>
Mon, 6 Dec 2010 21:10:49 +0000
(22:10 +0100)
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 d6628b1bff00ac6fe415149d75040761b19caaf2..6ec9c699a26aa8dd57b6006e0e3696118dd5f994 100644
(file)
--- a/
src/mesa/state_tracker/st_context.c
+++ b/
src/mesa/state_tracker/st_context.c
@@
-244,8
+244,8
@@
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);
+ pipe->set_constant_buffer(pipe,
i
, 0, NULL);
+ pipe_resource_reference(&st->state.constants[
i
], NULL);
}
_mesa_delete_program_cache(st->ctx, st->pixel_xfer.cache);