Fix T56752: Tooltip flicker alpha on redraw

This commit is contained in:
Clément Foucault 2018-09-11 22:11:05 +02:00
parent 6c6c3bad02
commit 8eedccb3f5
Notes: blender-bot 2023-02-14 08:28:46 +01:00
Referenced by issue #56752, Tooltip flicker alpha on redraw
1 changed files with 1 additions and 0 deletions

View File

@ -2463,6 +2463,7 @@ static void widget_menu_back(uiWidgetColors *wcol, rcti *rect, int flag, int dir
rect->ymax += 0.1f * U.widget_unit;
}
GPU_blend_set_func_separate(GPU_SRC_ALPHA, GPU_ONE_MINUS_SRC_ALPHA, GPU_ONE, GPU_ONE_MINUS_SRC_ALPHA);
GPU_blend(true);
widget_softshadow(rect, roundboxalign, wcol->roundness * U.widget_unit);