When selecting gizmos (such as one of the scale handles in the Transform tool), the depth test state does not match what is shown in the viewport. This can lead to unintuitive gizmo selection. The issue is caused by the incorrect assumption that the depth state is already `GPU_DEPTH_NONE` before rendering the gizmos for selection. The solution is to ensure the status before rendering. Pull Request: https://projects.blender.org/blender/blender/pulls/141412