From: Samuel Pitoiset Date: Wed, 19 Jul 2017 08:59:03 +0000 (+0200) Subject: mesa: rename bind_texture() to bind_texture_object() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a77768bf60114f953c7020fd782cec5e6543fa5a;p=mesa.git mesa: rename bind_texture() to bind_texture_object() Signed-off-by: Samuel Pitoiset Reviewed-by: Timothy Arceri --- diff --git a/src/mesa/main/texobj.c b/src/mesa/main/texobj.c index 95f2b34337d..2eb8eae4b13 100644 --- a/src/mesa/main/texobj.c +++ b/src/mesa/main/texobj.c @@ -1576,9 +1576,8 @@ _mesa_tex_target_to_index(const struct gl_context *ctx, GLenum target) * \param texObj the new texture object (cannot be NULL) */ static void -bind_texture(struct gl_context *ctx, - unsigned unit, - struct gl_texture_object *texObj) +bind_texture_object(struct gl_context *ctx, unsigned unit, + struct gl_texture_object *texObj) { struct gl_texture_unit *texUnit; int targetIndex; @@ -1702,7 +1701,7 @@ _mesa_BindTexture( GLenum target, GLuint texName ) assert(newTexObj->Target == target); assert(newTexObj->TargetIndex == targetIndex); - bind_texture(ctx, ctx->Texture.CurrentUnit, newTexObj); + bind_texture_object(ctx, ctx->Texture.CurrentUnit, newTexObj); } @@ -1755,7 +1754,7 @@ bind_texture_unit(struct gl_context *ctx, GLuint unit, GLuint texture, assert(valid_texture_object(texObj)); - bind_texture(ctx, unit, texObj); + bind_texture_object(ctx, unit, texObj); } @@ -1842,7 +1841,7 @@ _mesa_BindTextures(GLuint first, GLsizei count, const GLuint *textures) texObj = _mesa_lookup_texture_locked(ctx, textures[i]); if (texObj && texObj->Target != 0) { - bind_texture(ctx, first + i, texObj); + bind_texture_object(ctx, first + i, texObj); } else { /* The ARB_multi_bind spec says: *