Mesa (master): mesa: remove LSB-first pixel packing check in glReadPixels

Brian Paul brianp at kemper.freedesktop.org
Fri Jan 27 17:25:36 PST 2012


Module: Mesa
Branch: master
Commit: 343100d1fcd5ee705e8b99cd9ff1259001f15081
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=343100d1fcd5ee705e8b99cd9ff1259001f15081

Author: Brian Paul <brianp at vmware.com>
Date:   Thu Jan 26 20:01:10 2012 -0700

mesa: remove LSB-first pixel packing check in glReadPixels

GL_UNPACK_LSB_FIRST only applies to bitmap data, not glReadPixels.

Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>

---

 src/mesa/main/readpix.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/src/mesa/main/readpix.c b/src/mesa/main/readpix.c
index c1489d2..84b5224 100644
--- a/src/mesa/main/readpix.c
+++ b/src/mesa/main/readpix.c
@@ -213,8 +213,7 @@ fast_read_rgba_pixels_memcpy( struct gl_context *ctx,
       return GL_FALSE;
 
    /* check for things we can't handle here */
-   if (packing->SwapBytes ||
-       packing->LsbFirst) {
+   if (packing->SwapBytes) {
       return GL_FALSE;
    }
 



More information about the mesa-commit mailing list