cso_cache: Fix test for currently bound blend state.
authorMichel Dänzer <michel@tungstengraphics.com>
Thu, 8 May 2008 18:00:11 +0000 (19:00 +0100)
committerMichel Dänzer <michel@tungstengraphics.com>
Thu, 8 May 2008 18:00:11 +0000 (19:00 +0100)
src/gallium/auxiliary/cso_cache/cso_context.c

index eef898f4865d6779cc10881be7081a35dbfc8456..a1a3a9efaf3fef4c33f7e6d679e15aec01840ec7 100644 (file)
@@ -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)