From a34147539860ffff9d1a27c59e0cdeb4cb39d2bf Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 26 Jan 2012 20:01:10 -0700 Subject: [PATCH] mesa: remove LSB-first pixel packing check in glReadPixels GL_UNPACK_LSB_FIRST only applies to bitmap data, not glReadPixels. Reviewed-by: Ian Romanick (cherry picked from commit 343100d1fcd5ee705e8b99cd9ff1259001f15081) --- src/mesa/main/readpix.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mesa/main/readpix.c b/src/mesa/main/readpix.c index f3a0d109adf..b9c93510379 100644 --- a/src/mesa/main/readpix.c +++ b/src/mesa/main/readpix.c @@ -230,8 +230,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; }