Mesa (master): mesa: remove byteswap check in fast_read_rgba_pixels_memcpy( )

Brian Paul brianp at kemper.freedesktop.org
Sat Jan 28 01:25:37 UTC 2012


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

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

mesa: remove byteswap check in fast_read_rgba_pixels_memcpy()

It's handled by _mesa_format_matches_format_and_type() now.

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

---

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

diff --git a/src/mesa/main/readpix.c b/src/mesa/main/readpix.c
index 71de0b3..908a55e 100644
--- a/src/mesa/main/readpix.c
+++ b/src/mesa/main/readpix.c
@@ -213,11 +213,6 @@ fast_read_rgba_pixels_memcpy( struct gl_context *ctx,
                                              ctx->Pack.SwapBytes))
       return GL_FALSE;
 
-   /* check for things we can't handle here */
-   if (packing->SwapBytes) {
-      return GL_FALSE;
-   }
-
    dstStride = _mesa_image_row_stride(packing, width, format, type);
    dst = (GLubyte *) _mesa_image_address2d(packing, pixels, width, height,
 					   format, type, 0, 0);




More information about the mesa-commit mailing list