From 6bd53cb5411b10a97d0f1375944928ce5d58c6ce Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 28 Feb 2018 11:46:02 +1100 Subject: 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. --- source/blender/gpu/intern/gpu_select_pick.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/blender/gpu/intern') 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 { -- cgit v1.2.3