From: Brian Date: Thu, 18 Oct 2007 20:30:03 +0000 (-0600) Subject: fix off-by-one error in CopyPixels src position X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=874b6b9960ee3778182cf331f6faf59d477eb214;p=mesa.git fix off-by-one error in CopyPixels src position --- diff --git a/src/mesa/state_tracker/st_cb_drawpixels.c b/src/mesa/state_tracker/st_cb_drawpixels.c index e4eaed1643a..b88b96e3b2f 100644 --- a/src/mesa/state_tracker/st_cb_drawpixels.c +++ b/src/mesa/state_tracker/st_cb_drawpixels.c @@ -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 */