[Mesa-dev] [PATCH 11/16] meta/blit: Use _mesa_bind_texture instead of _mesa_BindTexture

Ian Romanick idr at freedesktop.org
Tue Dec 19 00:14:09 UTC 2017


From: Ian Romanick <ian.d.romanick at intel.com>

Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
---
 src/mesa/drivers/common/meta_blit.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mesa/drivers/common/meta_blit.c b/src/mesa/drivers/common/meta_blit.c
index ee48582..ea0bd3f 100644
--- a/src/mesa/drivers/common/meta_blit.c
+++ b/src/mesa/drivers/common/meta_blit.c
@@ -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);
-- 
2.9.5



More information about the mesa-dev mailing list