From 874b6b9960ee3778182cf331f6faf59d477eb214 Mon Sep 17 00:00:00 2001 From: Brian Date: Thu, 18 Oct 2007 14:30:03 -0600 Subject: [PATCH] fix off-by-one error in CopyPixels src position --- src/mesa/state_tracker/st_cb_drawpixels.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- 2.30.2