Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-03-23 05:30:02 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-03-23 06:26:33 +0300
commit0093ad643a6d5d59e054843df9e1079206959ec4 (patch)
treee3d3cd8dbc8f9583af3da42e4ba37dcb788f5fd5 /source/blender/draw/modes/paint_vertex_mode.c
parent045a615f9a4c1f52b336497e99eb449f92e9dfb2 (diff)
Cleanp: remove redundant clipping uniform
workbench_material_shgroup_uniform handles this.
Diffstat (limited to 'source/blender/draw/modes/paint_vertex_mode.c')
-rw-r--r--source/blender/draw/modes/paint_vertex_mode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/modes/paint_vertex_mode.c b/source/blender/draw/modes/paint_vertex_mode.c
index ac678a996dc..95ee3729c77 100644
--- a/source/blender/draw/modes/paint_vertex_mode.c
+++ b/source/blender/draw/modes/paint_vertex_mode.c
@@ -108,7 +108,7 @@ static void PAINT_VERTEX_engine_init(void *UNUSED(vedata))
const DRWContextState *draw_ctx = DRW_context_state_get();
PAINT_VERTEX_Shaders *sh_data = &e_data.sh_data[draw_ctx->sh_cfg];
- if (draw_ctx->sh_cfg) {
+ if (draw_ctx->sh_cfg == GPU_SHADER_CFG_CLIPPED) {
DRW_state_clip_planes_set_from_rv3d(draw_ctx->rv3d);
}
const GPUShaderConfigData *sh_cfg_data = &GPU_shader_cfg_data[draw_ctx->sh_cfg];