diff options
Diffstat (limited to 'source/blender/draw/intern/draw_manager_exec.c')
-rw-r--r-- | source/blender/draw/intern/draw_manager_exec.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/draw/intern/draw_manager_exec.c b/source/blender/draw/intern/draw_manager_exec.c index 49bb9f114a7..f53631e7e54 100644 --- a/source/blender/draw/intern/draw_manager_exec.c +++ b/source/blender/draw/intern/draw_manager_exec.c @@ -366,10 +366,10 @@ void DRW_state_invert_facing(void) * and if the shaders have support for it (see usage of gl_ClipDistance). * Be sure to call DRW_state_clip_planes_reset() after you finish drawing. **/ -void DRW_state_clip_planes_add(float plane_eq[4]) +void DRW_state_clip_planes_count_set(unsigned int plane_ct) { - BLI_assert(DST.num_clip_planes < MAX_CLIP_PLANES-1); - // copy_v4_v4(DST.view_data.clip_planes_eq[DST.num_clip_planes++], plane_eq); + BLI_assert(plane_ct <= MAX_CLIP_PLANES); + DST.num_clip_planes = plane_ct; } void DRW_state_clip_planes_reset(void) |