summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2017-07-19 10:59:03 +0200
committerSamuel Pitoiset <[email protected]>2017-07-31 13:53:39 +0200
commita77768bf60114f953c7020fd782cec5e6543fa5a (patch)
tree38fde6b2fb25ca5f3241ef6972692df0e40bf3cf /src/mesa/main
parenta43ac5e7c4d29fc9be86af730306e361683f5e08 (diff)
mesa: rename bind_texture() to bind_texture_object()
Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/texobj.c11
1 files changed, 5 insertions, 6 deletions
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:
*