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@intel.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user