mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 09:18:04 +02:00
gallium: fix cast for size calc of pipe_blend_state
This commit is contained in:
parent
629bb3fa32
commit
cbb8d35a3a
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue