summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/cso_cache/cso_context.c
diff options
context:
space:
mode:
authorMichel Dänzer <michel@tungstengraphics.com>2008-05-08 19:00:11 +0100
committerMichel Dänzer <michel@tungstengraphics.com>2008-05-08 19:00:11 +0100
commit1dfb3d4729ce4cd71a593c14dbb2907cd987f8ab (patch)
treee87c4712ad1ac68a8ea1c0dc82f063981d5cc5f0 /src/gallium/auxiliary/cso_cache/cso_context.c
parentdeceeca18d3a3f18caeac980ad63fafd8bad709c (diff)
cso_cache: Fix test for currently bound blend state.
Diffstat (limited to 'src/gallium/auxiliary/cso_cache/cso_context.c')
-rw-r--r--src/gallium/auxiliary/cso_cache/cso_context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/cso_cache/cso_context.c b/src/gallium/auxiliary/cso_cache/cso_context.c
index eef898f486..a1a3a9efaf 100644
--- a/src/gallium/auxiliary/cso_cache/cso_context.c
+++ b/src/gallium/auxiliary/cso_cache/cso_context.c
@@ -84,7 +84,7 @@ static boolean delete_blend_state(struct cso_context *ctx, void *state)
{
struct cso_blend *cso = (struct cso_blend *)state;
- if (ctx->blend == state)
+ if (ctx->blend == cso->data)
return FALSE;
if (cso->delete_state)