[Mesa-dev] [PATCH 051/101] mesa: rename bind_texture() to bind_texture_object()
Samuel Pitoiset
samuel.pitoiset at gmail.com
Fri Jul 21 17:40:00 UTC 2017
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
src/mesa/main/texobj.c | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/src/mesa/main/texobj.c b/src/mesa/main/texobj.c
index 95f2b34337..2eb8eae4b1 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:
*
--
2.13.3
More information about the mesa-dev
mailing list