meta/blit: Use _mesa_bind_texture instead of _mesa_BindTexture
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 13 Jan 2016 09:25:59 +0000 (01:25 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 3 Jan 2018 00:23:51 +0000 (16:23 -0800)
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/mesa/drivers/common/meta_blit.c

index ee485829445bd0b85453d4350275b6e22e5a454b..ea0bd3fead1f14d3a6f2b2c25f8d053e2992d7a1 100644 (file)
@@ -937,7 +937,7 @@ _mesa_meta_setup_sampler(struct gl_context *ctx,
                           samp_obj->WrapR);
 
    /* Prepare src texture state */
-   _mesa_BindTexture(target, texObj->Name);
+   _mesa_bind_texture(ctx, target, texObj);
    if (target != GL_TEXTURE_RECTANGLE_ARB) {
       _mesa_texture_parameteriv(ctx, texObj, GL_TEXTURE_BASE_LEVEL,
                                 (GLint *) &srcLevel, false);