fix off-by-one error in CopyPixels src position
authorBrian <brian.paul@tungstengraphics.com>
Thu, 18 Oct 2007 20:30:03 +0000 (14:30 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Thu, 18 Oct 2007 20:30:03 +0000 (14:30 -0600)
src/mesa/state_tracker/st_cb_drawpixels.c

index e4eaed1643a9f2da9e3402c8cbb6b141b8de16d0..b88b96e3b2f1b9829629c5ead17bbb7c7fa3db92 100644 (file)
@@ -1216,7 +1216,7 @@ st_CopyPixels(GLcontext *ctx, GLint srcx, GLint srcy,
       return;
 
    if (st_fb_orientation(ctx->DrawBuffer) == Y_0_TOP) {
-      srcy = ctx->DrawBuffer->Height - srcy - height - 1;
+      srcy = ctx->DrawBuffer->Height - srcy - height;
    }
 
    /* copy source framebuffer region into mipmap/texture */