mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
fix off-by-one error in CopyPixels src position
This commit is contained in:
parent
d44e515fd7
commit
874b6b9960
1 changed files with 1 additions and 1 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue