diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-08-21 11:22:25 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-08-22 14:51:02 +0300 |
commit | 648924333234a1fd0fee91851bb7ad8bc8639f3a (patch) | |
tree | 31c5a999d8d6ebb47c52b97fbc1b656d2caa55b1 /source/blender/draw/engines/workbench/transparent_mode.c | |
parent | bb639ccc47a4d66ef451f6b590bd6fad5de2b2f2 (diff) |
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.
Diffstat (limited to 'source/blender/draw/engines/workbench/transparent_mode.c')
-rw-r--r-- | source/blender/draw/engines/workbench/transparent_mode.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/source/blender/draw/engines/workbench/transparent_mode.c b/source/blender/draw/engines/workbench/transparent_mode.c index 8d76da2763b..1d451a96419 100644 --- a/source/blender/draw/engines/workbench/transparent_mode.c +++ b/source/blender/draw/engines/workbench/transparent_mode.c @@ -63,11 +63,6 @@ static void workbench_transparent_draw_background(void *vedata) { WORKBENCH_Data *data = vedata; workbench_forward_draw_background(data); -} - -static void workbench_transparent_draw_scene(void *vedata) -{ - WORKBENCH_Data *data = vedata; workbench_forward_draw_scene(data); workbench_forward_draw_finish(data); } @@ -95,7 +90,7 @@ DrawEngineType draw_engine_workbench_transparent = { &workbench_transparent_cache_populate, &workbench_transparent_cache_finish, &workbench_transparent_draw_background, - &workbench_transparent_draw_scene, + NULL, &workbench_transparent_view_update, NULL, NULL, |