Mesa (intel-2008-q4): mesa: Clip copytexsubimage to read framebuffer bounds , not scissor region.
Eric Anholt
anholt at kemper.freedesktop.org
Tue Dec 23 23:05:43 UTC 2008
Module: Mesa
Branch: intel-2008-q4
Commit: c5b2549b3c3507c4d20bfe6261db0a3e1a91b4e6
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c5b2549b3c3507c4d20bfe6261db0a3e1a91b4e6
Author: Eric Anholt <eric at anholt.net>
Date: Thu Dec 18 18:31:25 2008 -0800
mesa: Clip copytexsubimage to read framebuffer bounds, not scissor region.
(cherry picked from commit d01c44aacaeabe1dd187163f9e204f40401698bc)
---
src/mesa/main/image.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/mesa/main/image.c b/src/mesa/main/image.c
index 6b19fc8..c205b4b 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;
More information about the mesa-commit
mailing list