summaryrefslogtreecommitdiff
path: root/src/mesa/state_tracker/st_context.c
diff options
context:
space:
mode:
authorJakob Bornecrantz <jakob@vmware.com>2010-12-06 20:59:49 +0100
committerJakob Bornecrantz <jakob@vmware.com>2010-12-06 22:10:49 +0100
commitd72cb9c94d0194861df3ca53e7181cfa08fd782a (patch)
treeb63657d658b0a563203df86e9aabde1469c8b280 /src/mesa/state_tracker/st_context.c
parente0d554ab787c6f356d51df4d6266d4deb1199565 (diff)
st/mesa: Unbind all constant buffers
Diffstat (limited to 'src/mesa/state_tracker/st_context.c')
-rw-r--r--src/mesa/state_tracker/st_context.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/state_tracker/st_context.c b/src/mesa/state_tracker/st_context.c
index d6628b1bff..6ec9c699a2 100644
--- 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);