summaryrefslogtreecommitdiff
path: root/src/mesa/main/image.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2008-12-18 18:31:25 -0800
committerEric Anholt <eric@anholt.net>2008-12-18 18:32:07 -0800
commitd01c44aacaeabe1dd187163f9e204f40401698bc (patch)
treebb120ac9ca3e6c4088edb274a678a53f02319d8e /src/mesa/main/image.c
parentaa09e0a1d532d0de2e094957d0509a7f60ebeafa (diff)
mesa: Clip copytexsubimage to read framebuffer bounds, not scissor region.
Diffstat (limited to 'src/mesa/main/image.c')
-rw-r--r--src/mesa/main/image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/image.c b/src/mesa/main/image.c
index 6b19fc8454..c205b4b766 100644
--- a/src/mesa/main/image.c
+++ b/src/mesa/main/image.c
@@ -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;