From 2b46f4b85330a579ae919f3f31af1550b5affdee Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Sat, 14 Oct 2006 21:33:06 +0000 Subject: [PATCH] cut and paste error: s/Width/Height/ --- src/mesa/swrast/s_copypix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/swrast/s_copypix.c b/src/mesa/swrast/s_copypix.c index 1a17b75c702..ec04143214d 100644 --- a/src/mesa/swrast/s_copypix.c +++ b/src/mesa/swrast/s_copypix.c @@ -860,7 +860,7 @@ fast_copy_pixels(GLcontext *ctx, /* clipping not supported */ if (srcX < 0 || srcX + width > srcFb->Width || - srcY < 0 || srcY + height > srcFb->Width || + srcY < 0 || srcY + height > srcFb->Height || dstX < dstFb->_Xmin || dstX + width > dstFb->_Xmax || dstY < dstFb->_Ymin || dstY + height > dstFb->_Ymax) { return GL_FALSE; -- 2.30.2