From: Brian Date: Thu, 27 Sep 2007 00:34:13 +0000 (-0600) Subject: don't use scissored bounds in _mesa_clip_copytexsubimage() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fcd4eeb743c717d48166e38a57fcd4a1752e32ab;p=mesa.git don't use scissored bounds in _mesa_clip_copytexsubimage() --- diff --git a/src/mesa/main/image.c b/src/mesa/main/image.c index ae3c82b8101..76e105e65ee 100644 --- a/src/mesa/main/image.c +++ b/src/mesa/main/image.c @@ -4641,7 +4641,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;