private void DoOneMode(EditorWindow caller, ref Rect rect, DrawCameraMode drawCameraMode)
{
EditorGUI.BeginDisabledGroup(!this.m_SceneView.CheckDrawModeForRenderingPath(drawCameraMode));
EditorGUI.BeginChangeCheck();
GUI.Toggle(rect, this.m_SceneView.renderMode == drawCameraMode, SceneRenderModeWindow.GetGUIContent(drawCameraMode), SceneRenderModeWindow.Styles.sMenuItem);
if (EditorGUI.EndChangeCheck())
{
this.m_SceneView.renderMode = drawCameraMode;
this.m_SceneView.Repaint();
GUIUtility.ExitGUI();
}
rect.y += 16f;
EditorGUI.EndDisabledGroup();
}