fix off-by-one error in CopyPixels src position

This commit is contained in:
Brian 2007-10-18 14:30:03 -06:00
parent d44e515fd7
commit 874b6b9960

View 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 */