cso_cache: Fix test for currently bound blend state.

This commit is contained in:
Michel Dänzer 2008-05-08 19:00:11 +01:00
parent deceeca18d
commit 1dfb3d4729

View 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)