diff options
author | Brian <brian.paul@tungstengraphics.com> | 2007-10-18 14:30:03 -0600 |
---|---|---|
committer | Brian <brian.paul@tungstengraphics.com> | 2007-10-18 14:30:03 -0600 |
commit | 874b6b9960ee3778182cf331f6faf59d477eb214 (patch) | |
tree | a50156096c452b0716e6d79202948eae6ad3438f /src | |
parent | d44e515fd77d088862c5f19ef9a7aa92b04b5f13 (diff) |
fix off-by-one error in CopyPixels src position
Diffstat (limited to 'src')
-rw-r--r-- | 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 e4eaed1643..b88b96e3b2 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 */ |