cso: don't forget to release vertex elements state
authorRoland Scheidegger <sroland@vmware.com>
Tue, 9 Mar 2010 18:05:32 +0000 (19:05 +0100)
committerRoland Scheidegger <sroland@vmware.com>
Tue, 9 Mar 2010 19:33:21 +0000 (20:33 +0100)
src/gallium/auxiliary/cso_cache/cso_context.c

index f8cb01467cc2f11b30a1e7bbed2984d5a9370358..6500891a10cb6cae31ca45bcfb1c2edfb702e97c 100644 (file)
@@ -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++) {