mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
softpipe: Use SATURATE
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Reviewed-by: Eric Engestrom <eric@engestrom.ch> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5100>
This commit is contained in:
parent
9983c4cd68
commit
7ea2ad0b39
1 changed files with 1 additions and 1 deletions
|
|
@ -79,7 +79,7 @@ softpipe_set_blend_color(struct pipe_context *pipe,
|
|||
/* save clamped color too */
|
||||
for (i = 0; i < 4; i++)
|
||||
softpipe->blend_color_clamped.color[i] =
|
||||
CLAMP(blend_color->color[i], 0.0f, 1.0f);
|
||||
SATURATE(blend_color->color[i]);
|
||||
|
||||
softpipe->dirty |= SP_NEW_BLEND;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue