mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
mesa: Clip copytexsubimage to read framebuffer bounds, not scissor region.
This commit is contained in:
parent
aa09e0a1d5
commit
d01c44aaca
1 changed files with 1 additions and 1 deletions
|
|
@ -5119,7 +5119,7 @@ _mesa_clip_copytexsubimage(const GLcontext *ctx,
|
|||
const struct gl_framebuffer *fb = ctx->ReadBuffer;
|
||||
const GLint srcX0 = *srcX, srcY0 = *srcY;
|
||||
|
||||
if (_mesa_clip_to_region(fb->_Xmin, fb->_Ymin, fb->_Xmax, fb->_Ymax,
|
||||
if (_mesa_clip_to_region(0, 0, fb->Width, fb->Height,
|
||||
srcX, srcY, width, height)) {
|
||||
*destX = *destX + *srcX - srcX0;
|
||||
*destY = *destY + *srcY - srcY0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue