From 648924333234a1fd0fee91851bb7ad8bc8639f3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Foucault?= Date: Tue, 21 Aug 2018 10:22:25 +0200 Subject: DRW: Fix background image display This make the workbench draw everything in the background routine just like eevee. This is because the workbench uses floating point buffers too and rendering background to this buffer makes it incorrect without proper color management. This could be improved because in xray the background is not blended but dithered as it's drawn after the main pass. --- source/blender/editors/space_view3d/view3d_draw_legacy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/space_view3d/view3d_draw_legacy.c') diff --git a/source/blender/editors/space_view3d/view3d_draw_legacy.c b/source/blender/editors/space_view3d/view3d_draw_legacy.c index 558af718101..d0fc36a8a1e 100644 --- a/source/blender/editors/space_view3d/view3d_draw_legacy.c +++ b/source/blender/editors/space_view3d/view3d_draw_legacy.c @@ -679,7 +679,7 @@ static void view3d_draw_bgpic(Scene *scene, Depsgraph *depsgraph, ibuf = ibuf->mipmap[mip - 1]; } - GPU_depth_test(false); + GPU_depth_test(!do_foreground); glDepthMask(GL_FALSE); GPU_blend(true); -- cgit v1.2.3