gallium: Fix GL_DEPTH CopyPixels tile coordinates.
authorMichel Dänzer <daenzer@vmware.com>
Thu, 12 Feb 2009 19:12:04 +0000 (20:12 +0100)
committerMichel Dänzer <daenzer@vmware.com>
Thu, 12 Feb 2009 19:12:04 +0000 (20:12 +0100)
src/mesa/state_tracker/st_cb_drawpixels.c

index 9e30e638e484aea85d123e2762c0f671770e80e6..b56dd36eb3d92609d54848090fe11df3d8ec29af 100644 (file)
@@ -1068,7 +1068,7 @@ st_CopyPixels(GLcontext *ctx, GLint srcx, GLint srcy,
       else {
          /* GL_DEPTH */
          GLuint *buf = (GLuint *) malloc(width * height * sizeof(GLuint));
-         pipe_get_tile_z(ptRead, srcx, srcy, width, height, buf);
+         pipe_get_tile_z(ptRead, 0, 0, width, height, buf);
          pipe_put_tile_z(ptTex, 0, 0, width, height, buf);
          free(buf);
       }