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 e4eaed1..b88b96e 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 */