diff --git a/src/mesa/state_tracker/st_atom_blend.c b/src/mesa/state_tracker/st_atom_blend.c index 426dc0211a9..4b73856b493 100644 --- a/src/mesa/state_tracker/st_atom_blend.c +++ b/src/mesa/state_tracker/st_atom_blend.c @@ -304,8 +304,8 @@ void st_update_blend_color(struct st_context *st) { struct pipe_context *pipe = st->pipe; - struct pipe_blend_color bc; + struct pipe_blend_color *bc = + (struct pipe_blend_color *)st->ctx->Color.BlendColorUnclamped; - COPY_4FV(bc.color, st->ctx->Color.BlendColorUnclamped); - pipe->set_blend_color(pipe, &bc); + pipe->set_blend_color(pipe, bc); }