mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 13:38:06 +02:00
mesa: make _mesa_bind_texture_unit() static
It's only called from the file it's defined in. Reviewed-by: Timothy Arceri <t_arceri@yahoo.com.au>
This commit is contained in:
parent
8f378d1083
commit
e089ca26e1
2 changed files with 5 additions and 9 deletions
|
|
@ -1745,10 +1745,10 @@ _mesa_BindTexture( GLenum target, GLuint texName )
|
|||
* texture object will be decremented. It'll be deleted if the
|
||||
* count hits zero.
|
||||
*/
|
||||
void
|
||||
_mesa_bind_texture_unit(struct gl_context *ctx,
|
||||
GLuint unit,
|
||||
struct gl_texture_object *texObj)
|
||||
static void
|
||||
bind_texture_unit(struct gl_context *ctx,
|
||||
GLuint unit,
|
||||
struct gl_texture_object *texObj)
|
||||
{
|
||||
struct gl_texture_unit *texUnit;
|
||||
|
||||
|
|
@ -1837,7 +1837,7 @@ _mesa_BindTextureUnit(GLuint unit, GLuint texture)
|
|||
}
|
||||
assert(valid_texture_object(texObj));
|
||||
|
||||
_mesa_bind_texture_unit(ctx, unit, texObj);
|
||||
bind_texture_unit(ctx, unit, texObj);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -209,10 +209,6 @@ extern void
|
|||
_mesa_delete_nameless_texture(struct gl_context *ctx,
|
||||
struct gl_texture_object *texObj);
|
||||
|
||||
extern void
|
||||
_mesa_bind_texture_unit(struct gl_context *ctx,
|
||||
GLuint unit,
|
||||
struct gl_texture_object *texObj);
|
||||
|
||||
/*@}*/
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue