Fix XCB on endian mismatched client and server with SHM off

If SHM is disabled, that code path already does its own bswaping.

Change-Id: I6c17f6c5c5502c8f89098d38d931b6b8f50b2640
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
This commit is contained in:
Allan Sandfeld Jensen 2018-08-21 14:58:43 +02:00
parent e04b85b026
commit bff307ab93

View File

@ -412,6 +412,8 @@ public:
bool imageNeedsEndianSwap() const
{
if (!hasShm())
return false; // The non-Shm path does its own swapping
#if Q_BYTE_ORDER == Q_BIG_ENDIAN
return m_setup->image_byte_order != XCB_IMAGE_ORDER_MSB_FIRST;
#else