summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2006-10-14 21:33:06 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2006-10-14 21:33:06 +0000
commit2b46f4b85330a579ae919f3f31af1550b5affdee (patch)
treeb6d1c895a55abaed4c5578814ac2682d07db800a
parent2458aba0e9037eaef77dcfeee56d676520560d77 (diff)
cut and paste error: s/Width/Height/
-rw-r--r--src/mesa/swrast/s_copypix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/swrast/s_copypix.c b/src/mesa/swrast/s_copypix.c
index 1a17b75c70..ec04143214 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;