From: Roland Scheidegger Date: Tue, 9 Mar 2010 18:05:32 +0000 (+0100) Subject: cso: don't forget to release vertex elements state X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0d6b0b0d9d5257cc8fb95786b6cd77d088bdb35e;p=mesa.git cso: don't forget to release vertex elements state --- diff --git a/src/gallium/auxiliary/cso_cache/cso_context.c b/src/gallium/auxiliary/cso_cache/cso_context.c index f8cb01467cc..6500891a10c 100644 --- a/src/gallium/auxiliary/cso_cache/cso_context.c +++ b/src/gallium/auxiliary/cso_cache/cso_context.c @@ -289,6 +289,7 @@ void cso_release_all( struct cso_context *ctx ) ctx->pipe->bind_depth_stencil_alpha_state( ctx->pipe, NULL ); 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 ); } for (i = 0; i < PIPE_MAX_SAMPLERS; i++) {