From: Brian Paul Date: Thu, 1 Jul 2010 17:43:18 +0000 (-0600) Subject: gallium/cso: unbind sampler views in cso_release_all() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1d298a3764cef6a7119524fdc8f3c0d2589d6070;p=mesa.git gallium/cso: unbind sampler views in cso_release_all() --- diff --git a/src/gallium/auxiliary/cso_cache/cso_context.c b/src/gallium/auxiliary/cso_cache/cso_context.c index 20a8612dcae..2a85fe365e2 100644 --- a/src/gallium/auxiliary/cso_cache/cso_context.c +++ b/src/gallium/auxiliary/cso_cache/cso_context.c @@ -289,6 +289,8 @@ void cso_release_all( struct cso_context *ctx ) ctx->pipe->bind_fs_state( ctx->pipe, NULL ); ctx->pipe->bind_vs_state( ctx->pipe, NULL ); ctx->pipe->bind_vertex_elements_state( ctx->pipe, NULL ); + ctx->pipe->set_fragment_sampler_views(ctx->pipe, 0, NULL); + ctx->pipe->set_vertex_sampler_views(ctx->pipe, 0, NULL); } for (i = 0; i < PIPE_MAX_SAMPLERS; i++) {