From: Jakob Bornecrantz Date: Mon, 6 Dec 2010 19:59:49 +0000 (+0100) Subject: st/mesa: Unbind all constant buffers X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d72cb9c94d0194861df3ca53e7181cfa08fd782a;p=mesa.git st/mesa: Unbind all constant buffers --- diff --git a/src/mesa/state_tracker/st_context.c b/src/mesa/state_tracker/st_context.c index d6628b1bff0..6ec9c699a26 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);