[Bf-blender-cvs] [671c6d8afd8] master: Cleanup: Gizmo: Remove non matched glDisable
Clément Foucault
noreply at git.blender.org
Thu Jul 16 17:17:58 CEST 2020
Commit: 671c6d8afd80053962e264e02453036402e8f0dc
Author: Clément Foucault
Date: Thu Jul 16 04:32:09 2020 +0200
Branches: master
https://developer.blender.org/rB671c6d8afd80053962e264e02453036402e8f0dc
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.
===================================================================
M source/blender/editors/gizmo_library/gizmo_types/dial3d_gizmo.c
===================================================================
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)
More information about the Bf-blender-cvs
mailing list