Fix T63312: Crash XRay + clipping
authorJeroen Bakker <j.bakker@atmind.nl>
Mon, 8 Apr 2019 06:12:45 +0000 (08:12 +0200)
committerJeroen Bakker <j.bakker@atmind.nl>
Tue, 16 Apr 2019 15:02:07 +0000 (17:02 +0200)
Outline shaders were only selected when no checker depth was available.

Reviewed By: fclem

Maniphest Tasks: T63312

Differential Revision: https://developer.blender.org/D4661

source/blender/draw/engines/workbench/workbench_forward.c

index fe8a341..f86a263 100644 (file)
@@ -318,6 +318,7 @@ void workbench_forward_engine_init(WORKBENCH_Data *vedata)
        workbench_fxaa_engine_init();
        workbench_taa_engine_init(vedata);
 
+       workbench_forward_outline_shaders_ensure(wpd, draw_ctx->sh_cfg);
        workbench_forward_choose_shaders(wpd, draw_ctx->sh_cfg);
 
        const float *viewport_size = DRW_viewport_size_get();