summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2002-09-21 17:36:08 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2002-09-21 17:36:08 +0000
commit6d99cffed372e52fca44de94eb7e538bdaf027e5 (patch)
tree0582c1254b6b22db3009a585b7508e17b10fd27b
parent9c16911e0687e579293c82b48c485003d4f6bd18 (diff)
fixed GL_MESA_pack_invert oversight
-rw-r--r--src/mesa/main/image.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/main/image.c b/src/mesa/main/image.c
index d093036a40..0a27b86ea3 100644
--- a/src/mesa/main/image.c
+++ b/src/mesa/main/image.c
@@ -1,4 +1,4 @@
-/* $Id: image.c,v 1.63.2.6 2002/09/21 17:21:44 brianp Exp $ */
+/* $Id: image.c,v 1.63.2.7 2002/09/21 17:36:08 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -572,6 +572,8 @@ _mesa_image_row_stride( const struct gl_pixelstore_attrib *packing,
remainder = bytesPerRow % packing->Alignment;
if (remainder > 0)
bytesPerRow += (packing->Alignment - remainder);
+ if (packing->Invert)
+ bytesPerRow = -bytesPerRow;
return bytesPerRow;
}
}