Cleanup: Correct comments for immediate mode buffer draw functions

This commit is contained in:
Julian Eisel 2022-01-17 18:18:22 +01:00
parent 194979e929
commit fa1fef5081
2 changed files with 3 additions and 3 deletions

View File

@ -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,

View File

@ -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;