From cfa788cf9a8ef08f11beb04bd4ea7e87b2a9bf6e Mon Sep 17 00:00:00 2001 From: Christian Rauch Date: Wed, 22 Jul 2020 10:45:30 +1000 Subject: GPU: clear color with 1.0 alpha This impacts GHOST/Wayland which draws windows using alpha. --- source/blender/editors/space_graph/space_graph.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/editors/space_graph') diff --git a/source/blender/editors/space_graph/space_graph.c b/source/blender/editors/space_graph/space_graph.c index 052e089942c..b1d995a7a0b 100644 --- a/source/blender/editors/space_graph/space_graph.c +++ b/source/blender/editors/space_graph/space_graph.c @@ -204,7 +204,7 @@ static void graph_main_region_draw(const bContext *C, ARegion *region) /* clear and setup matrix */ UI_GetThemeColor3fv(TH_BACK, col); - GPU_clear_color(col[0], col[1], col[2], 0.0); + GPU_clear_color(col[0], col[1], col[2], 1.0f); GPU_clear(GPU_COLOR_BIT); UI_view2d_view_ortho(v2d); @@ -362,7 +362,7 @@ static void graph_channel_region_draw(const bContext *C, ARegion *region) /* clear and setup matrix */ UI_GetThemeColor3fv(TH_BACK, col); - GPU_clear_color(col[0], col[1], col[2], 0.0); + GPU_clear_color(col[0], col[1], col[2], 1.0f); GPU_clear(GPU_COLOR_BIT); UI_view2d_view_ortho(v2d); -- cgit v1.2.3