diff options
author | Julian Eisel <julian@blender.org> | 2022-01-17 20:18:22 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2022-01-17 20:26:10 +0300 |
commit | fa1fef50817783bf4e2ba72a3b26807d88090cdd (patch) | |
tree | 9d89e3a95092753e543f258397970887bd14e85d | |
parent | 194979e92947524c6257a38ae7bee4b20dc61d9e (diff) |
Cleanup: Correct comments for immediate mode buffer draw functions
-rw-r--r-- | source/blender/editors/include/BIF_glutil.h | 4 | ||||
-rw-r--r-- | source/blender/editors/screen/glutil.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/include/BIF_glutil.h b/source/blender/editors/include/BIF_glutil.h index e8d5bc4c868..61dd0adc84d 100644 --- a/source/blender/editors/include/BIF_glutil.h +++ b/source/blender/editors/include/BIF_glutil.h @@ -148,8 +148,8 @@ void immDrawPixelsTexTiled_scaling(IMMDrawPixelsTexState *state, * * If color is NULL then use white by default * - * Be also aware that this function unbinds the shader when - * it's finished. + * Unless <em>state->do_shader_unbind<em> is explicitly set to `false`, the shader is unbound when + * finished. */ void immDrawPixelsTexTiled_scaling_clipping(IMMDrawPixelsTexState *state, float x, diff --git a/source/blender/editors/screen/glutil.c b/source/blender/editors/screen/glutil.c index 1c00040a894..0ddede017e2 100644 --- a/source/blender/editors/screen/glutil.c +++ b/source/blender/editors/screen/glutil.c @@ -64,7 +64,7 @@ IMMDrawPixelsTexState immDrawPixelsTexSetup(int builtin) state.shader = GPU_shader_get_builtin_shader(builtin); - /* Shader will be unbind by immUnbindProgram in immDrawPixelsTexScaled_clipping */ + /* Shader will be unbind by immUnbindProgram in a `immDrawPixelsTex` function. */ immBindBuiltinProgram(builtin); immUniform1i("image", 0); state.do_shader_unbind = true; |