Fixing depth handling for gizmo

Instead of just disabling Z sorting, the depth buffer gets cleared
before rendering the gizmo. This should make the rotation mode less
confusing.