UI: Fix opacity of the popover arrow outline

Due to the old AA method, it was necessary to add transparency to the
outline of the popover arrow to match the box outline opacity. This is
no longer required after rB15dda0115c78.

See the differential for before and after screenshots.

Differential Revision: https://developer.blender.org/D9026
This commit is contained in:
Yevgeny Makarov 2020-10-08 14:25:22 -05:00 committed by Hans Goudey
parent e90638b911
commit 3d4231babf
1 changed files with 1 additions and 1 deletions

View File

@ -4956,7 +4956,7 @@ static void ui_draw_popover_back_impl(const uiWidgetColors *wcol,
GPU_blend(GPU_BLEND_ALPHA);
immBegin(GPU_PRIM_TRIS, 3);
immUniformColor4ub(UNPACK3(wcol->outline), 166);
immUniformColor4ubv(wcol->outline);
immVertex2f(pos, cent_x - unit_half, y);
immVertex2f(pos, cent_x + unit_half, y);
immVertex2f(pos, cent_x, y + sign * unit_half);