DRW: disable clipping background drawing w/ xray mode
[blender.git] / source / blender / draw / engines / workbench / workbench_forward.c
index 80c35f3cfcd2996755cffcc7b87350b47f31fd05..43230c723d301f4f37e1822ed37b07f6e90ac774 100644 (file)
@@ -369,7 +369,8 @@ void workbench_forward_engine_init(WORKBENCH_Data *vedata)
                DRW_shgroup_call_add(grp, DRW_cache_fullscreen_quad_get(), NULL);
        }
 
-       if (draw_ctx->rv3d && (draw_ctx->rv3d->rflag & RV3D_CLIPPING) && draw_ctx->rv3d->clipbb) {
+       /* TODO(campbell): displays but masks geometry. */
+       if (0 && (draw_ctx->rv3d && (draw_ctx->rv3d->rflag & RV3D_CLIPPING) && draw_ctx->rv3d->clipbb)) {
                psl->background_pass = DRW_pass_create(
                        "Background", DRW_STATE_WRITE_COLOR | DRW_STATE_DEPTH_EQUAL);
                GPUShader *shader = GPU_shader_get_builtin_shader(GPU_SHADER_3D_UNIFORM_COLOR_BACKGROUND);