aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/common/meta_generate_mipmap.c
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2016-01-19 17:15:08 -0800
committerIan Romanick <[email protected]>2018-01-02 16:23:52 -0800
commit5325a34ed78e2ffc3bd3d05fbdb49c8002853a77 (patch)
tree793bb4540e0ac8138bc0279f9ba66201764de865 /src/mesa/drivers/common/meta_generate_mipmap.c
parente0ad314568349e24e5fe44dc6cac8b98a14213d6 (diff)
meta: Use _mesa_bind_texture instead of _mesa_BindTexture
Signed-off-by: Ian Romanick <[email protected]> Reviewed-by: Tapani Pälli <[email protected]>
Diffstat (limited to 'src/mesa/drivers/common/meta_generate_mipmap.c')
-rw-r--r--src/mesa/drivers/common/meta_generate_mipmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/common/meta_generate_mipmap.c b/src/mesa/drivers/common/meta_generate_mipmap.c
index 55093e95537..99d0931694d 100644
--- a/src/mesa/drivers/common/meta_generate_mipmap.c
+++ b/src/mesa/drivers/common/meta_generate_mipmap.c
@@ -201,10 +201,10 @@ _mesa_meta_GenerateMipmap(struct gl_context *ctx, GLenum target,
/* We may have been called from glGenerateTextureMipmap with CurrentUnit
* still set to 0, so we don't know when we can skip binding the texture.
- * Assume that _mesa_BindTexture will be fast if we're rebinding the same
+ * Assume that _mesa_bind_texture will be fast if we're rebinding the same
* texture.
*/
- _mesa_BindTexture(target, texObj->Name);
+ _mesa_bind_texture(ctx, target, texObj);
if (mipmap->samp_obj == NULL) {
mipmap->samp_obj = ctx->Driver.NewSamplerObject(ctx, 0xDEADBEEF);