diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2002-09-21 17:36:08 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2002-09-21 17:36:08 +0000 |
commit | 6d99cffed372e52fca44de94eb7e538bdaf027e5 (patch) | |
tree | 0582c1254b6b22db3009a585b7508e17b10fd27b | |
parent | 9c16911e0687e579293c82b48c485003d4f6bd18 (diff) |
fixed GL_MESA_pack_invert oversight
-rw-r--r-- | src/mesa/main/image.c | 4 |
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; } } |