Mesa (gallium-texture-transfer): gallium: Fix GL_DEPTH CopyPixels tile coordinates.

Michel Dänzer daenzer at kemper.freedesktop.org
Thu Feb 12 19:15:15 UTC 2009


Module: Mesa
Branch: gallium-texture-transfer
Commit: 513fc6078431e1f5672795d3601e3255f378c9f8
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=513fc6078431e1f5672795d3601e3255f378c9f8

Author: Michel Dänzer <daenzer at vmware.com>
Date:   Thu Feb 12 20:12:04 2009 +0100

gallium: Fix GL_DEPTH CopyPixels tile coordinates.

---

 src/mesa/state_tracker/st_cb_drawpixels.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/state_tracker/st_cb_drawpixels.c b/src/mesa/state_tracker/st_cb_drawpixels.c
index 9e30e63..b56dd36 100644
--- a/src/mesa/state_tracker/st_cb_drawpixels.c
+++ b/src/mesa/state_tracker/st_cb_drawpixels.c
@@ -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);
       }




More information about the mesa-commit mailing list