[Mesa-dev] [PATCH 1/2] intel: pass xoffset, yoffset = 0 to _mesa_texstore()

Brian Paul brian.e.paul at gmail.com
Mon Dec 26 15:10:16 PST 2011


From: Brian Paul <brianp at vmware.com>

---
 src/mesa/drivers/dri/intel/intel_tex_subimage.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/src/mesa/drivers/dri/intel/intel_tex_subimage.c b/src/mesa/drivers/dri/intel/intel_tex_subimage.c
index 4572747..258c3f5 100644
--- a/src/mesa/drivers/dri/intel/intel_tex_subimage.c
+++ b/src/mesa/drivers/dri/intel/intel_tex_subimage.c
@@ -115,12 +115,10 @@ intel_blit_texsubimage(struct gl_context * ctx,
 				  &blit_x, &blit_y);
    blit_x += xoffset;
    blit_y += yoffset;
-   xoffset = 0;
-   yoffset = 0;
 
    if (!_mesa_texstore(ctx, 2, texImage->_BaseFormat,
 		       texImage->TexFormat,
-		       xoffset, yoffset, 0,
+		       0, 0, 0,  /* x, y, z offset in dest buffer */
 		       dstRowStride,
 		       &dstMap,
 		       width, height, 1,
-- 
1.7.1



More information about the mesa-dev mailing list