Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-02-28 03:46:02 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-02-28 03:47:54 +0300
commit6bd53cb5411b10a97d0f1375944928ce5d58c6ce (patch)
tree013766b590d58cf83f968a69567129a9c54fe2f0 /source/blender/gpu
parent6addaf73931b72b674fc2074de4ab9c9f1f49f1e (diff)
Cleanup: comment for depth picking code, const args
Note that setting `glDepthFunc` isn't important, since 2.8 branch changes this value it might seem like an error however it's harmless in this case - so better make note of this.
Diffstat (limited to 'source/blender/gpu')
-rw-r--r--source/blender/gpu/intern/gpu_select_pick.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_select_pick.c b/source/blender/gpu/intern/gpu_select_pick.c
index 7657d329b8a..703035483dd 100644
--- a/source/blender/gpu/intern/gpu_select_pick.c
+++ b/source/blender/gpu/intern/gpu_select_pick.c
@@ -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 {