Cleanup: Correct comments for immediate mode buffer draw functions
This commit is contained in:
parent
194979e929
commit
fa1fef5081
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue