diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-08-16 17:48:21 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-08-18 22:30:10 +0300 |
commit | 298329554a5a0ae40bc4a64ca9c1490d22edc947 (patch) | |
tree | c472a8a8f711e4de331b6cedafb9adc74014becd /source/blender/windowmanager/intern/wm_draw.c | |
parent | bf1b622dd962416fef94ccb2f47878eced31e20d (diff) |
Cleanup: GPUState: remove double GPU_blend calls
Diffstat (limited to 'source/blender/windowmanager/intern/wm_draw.c')
-rw-r--r-- | source/blender/windowmanager/intern/wm_draw.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/windowmanager/intern/wm_draw.c b/source/blender/windowmanager/intern/wm_draw.c index d5e175b8cb4..6f3fbf77987 100644 --- a/source/blender/windowmanager/intern/wm_draw.c +++ b/source/blender/windowmanager/intern/wm_draw.c @@ -576,8 +576,7 @@ void wm_draw_region_blend(ARegion *region, int view, bool blend) const float rectg[4] = {rect_geo.xmin, rect_geo.ymin, rect_geo.xmax, rect_geo.ymax}; if (blend) { - /* GL_ONE because regions drawn offscreen have premultiplied alpha. */ - GPU_blend(GPU_BLEND_ALPHA); + /* Regions drawn offscreen have premultiplied alpha. */ GPU_blend(GPU_BLEND_ALPHA_PREMULT); } |