mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
st/mesa: don't translate blend state when it's disabled for a colorbuffer
Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
712332ed54
commit
3d06c8afb5
1 changed files with 4 additions and 3 deletions
|
|
@ -161,12 +161,13 @@ st_update_blend( struct st_context *st )
|
||||||
else if (ctx->Color.BlendEnabled && !ctx->Color._AdvancedBlendMode) {
|
else if (ctx->Color.BlendEnabled && !ctx->Color._AdvancedBlendMode) {
|
||||||
/* blending enabled */
|
/* blending enabled */
|
||||||
for (i = 0, j = 0; i < num_state; i++) {
|
for (i = 0, j = 0; i < num_state; i++) {
|
||||||
|
if (!(ctx->Color.BlendEnabled & (1 << i)))
|
||||||
|
continue;
|
||||||
|
|
||||||
blend->rt[i].blend_enable = (ctx->Color.BlendEnabled >> i) & 0x1;
|
if (ctx->Extensions.ARB_draw_buffers_blend)
|
||||||
|
|
||||||
if (ctx->Extensions.ARB_draw_buffers_blend)
|
|
||||||
j = i;
|
j = i;
|
||||||
|
|
||||||
|
blend->rt[i].blend_enable = 1;
|
||||||
blend->rt[i].rgb_func =
|
blend->rt[i].rgb_func =
|
||||||
translate_blend(ctx->Color.Blend[j].EquationRGB);
|
translate_blend(ctx->Color.Blend[j].EquationRGB);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue