summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/cso_cache
diff options
context:
space:
mode:
authorRoland Scheidegger <[email protected]>2010-01-25 16:31:21 +0100
committerRoland Scheidegger <[email protected]>2010-01-25 16:31:21 +0100
commitcbb8d35a3ae999f0192dfdca35f7cbc1d494fabb (patch)
treecffdd710d3ff181244ceebe2a1de891f644b724b /src/gallium/auxiliary/cso_cache
parent629bb3fa32f6ca1f8cf43222f4b4c399c91b3b6a (diff)
gallium: fix cast for size calc of pipe_blend_state
Diffstat (limited to 'src/gallium/auxiliary/cso_cache')
-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 c8fdfc81248..c479c360643 100644
--- a/src/gallium/auxiliary/cso_cache/cso_context.c
+++ b/src/gallium/auxiliary/cso_cache/cso_context.c
@@ -315,7 +315,7 @@ enum pipe_error cso_set_blend(struct cso_context *ctx,
void *handle;
key_size = templ->independent_blend_enable ? sizeof(struct pipe_blend_state) :
- (void *)&(templ->rt[1]) - (void *)templ;
+ (char *)&(templ->rt[1]) - (char *)templ;
hash_key = cso_construct_key((void*)templ, key_size);
iter = cso_find_state_template(ctx->cache, hash_key, CSO_BLEND, (void*)templ);