st/mesa: don't make a local copy of blend color

This is perfectly safe and nothing bad can happen... and we have also CI.

Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7940>
This commit is contained in:
Marek Olšák 2020-12-03 13:47:19 -05:00 committed by Marge Bot
parent a35014954b
commit e91c6ca5b2
1 changed files with 3 additions and 3 deletions

View File

@ -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);
}