Fix T56752: Tooltip flicker alpha on redraw
authorClément Foucault <foucault.clem@gmail.com>
Tue, 11 Sep 2018 20:11:05 +0000 (22:11 +0200)
committerClément Foucault <foucault.clem@gmail.com>
Tue, 11 Sep 2018 20:11:15 +0000 (22:11 +0200)
source/blender/editors/interface/interface_widgets.c

index dd57a27102f642ff7f0e6304e5da4bab2ff84f6f..e81af2755b15567e533155df241cd2e46b0637b1 100644 (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);