mesa: Clip copytexsubimage to read framebuffer bounds, not scissor region.
authorEric Anholt <eric@anholt.net>
Fri, 19 Dec 2008 02:31:25 +0000 (18:31 -0800)
committerEric Anholt <eric@anholt.net>
Fri, 19 Dec 2008 02:32:07 +0000 (18:32 -0800)
src/mesa/main/image.c

index 6b19fc8454c906d3674bc62fc296b8a610f91bb0..c205b4b766da71fae0c3f9bfade664cf5f30e754 100644 (file)
@@ -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;