From 671c6d8afd80053962e264e02453036402e8f0dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Foucault?= Date: Thu, 16 Jul 2020 04:32:09 +0200 Subject: Cleanup: Gizmo: Remove non matched glDisable We use the polyline shader for drawing the rotation gizmo now. This shader supports clipping without hardware clip planes. --- source/blender/editors/gizmo_library/gizmo_types/dial3d_gizmo.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'source/blender/editors') diff --git a/source/blender/editors/gizmo_library/gizmo_types/dial3d_gizmo.c b/source/blender/editors/gizmo_library/gizmo_types/dial3d_gizmo.c index 262f4b78b95..5d7c3a9e717 100644 --- a/source/blender/editors/gizmo_library/gizmo_types/dial3d_gizmo.c +++ b/source/blender/editors/gizmo_library/gizmo_types/dial3d_gizmo.c @@ -461,10 +461,6 @@ static void gizmo_dial_draw_select(const bContext *C, wmGizmo *gz, int select_id GPU_select_load_id(select_id); dial_draw_intern(C, gz, true, false, clip_plane); - - if (clip_plane) { - glDisable(GL_CLIP_DISTANCE0); - } } static void gizmo_dial_draw(const bContext *C, wmGizmo *gz) -- cgit v1.2.3