Cleanup: comment for depth picking code, const args
[blender.git] / source / blender / gpu / intern / gpu_select_pick.c
index 7657d329b8ac154e02435cb40a0559ae97d6855a..703035483dd14325215fd0187da9a39290f02df7 100644 (file)
@@ -326,6 +326,9 @@ void gpu_select_pick_begin(
                glDepthMask(GL_TRUE);
 
                if (mode == GPU_SELECT_PICK_ALL) {
+                       /* Note that other depth settings (such as #GL_LEQUAL) work too,
+                        * since the depth is always cleared.
+                        * Noting this for cases when depth picking is used where drawing calls change depth settings. */
                        glDepthFunc(GL_ALWAYS);
                }
                else {