intel: pass xoffset, yoffset = 0 to _mesa_texstore()
authorBrian Paul <brianp@vmware.com>
Mon, 2 Jan 2012 18:55:39 +0000 (11:55 -0700)
committerBrian Paul <brianp@vmware.com>
Mon, 2 Jan 2012 18:55:39 +0000 (11:55 -0700)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/intel/intel_tex_subimage.c

index 45727479779666ac38f31a42cea479ff53a54fee..258c3f5d6d9934e1849e532709ee0246a63891dd 100644 (file)
@@ -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,