don't use scissored bounds in _mesa_clip_copytexsubimage()
authorBrian <brian.paul@tungstengraphics.com>
Thu, 27 Sep 2007 00:34:13 +0000 (18:34 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Thu, 27 Sep 2007 00:34:13 +0000 (18:34 -0600)
src/mesa/main/image.c

index ae3c82b8101c6443eb5ec5eb78ef7cd95aebb865..76e105e65ee3f4b5580e2adfac309742716a40f8 100644 (file)
@@ -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;