From: Michel Dänzer Date: Thu, 8 May 2008 18:00:11 +0000 (+0100) Subject: cso_cache: Fix test for currently bound blend state. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1dfb3d4729ce4cd71a593c14dbb2907cd987f8ab;p=mesa.git cso_cache: Fix test for currently bound blend state. --- diff --git a/src/gallium/auxiliary/cso_cache/cso_context.c b/src/gallium/auxiliary/cso_cache/cso_context.c index eef898f4865..a1a3a9efaf3 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)