diff options
Diffstat (limited to 'src/mesa/drivers/verite/vrspan.c')
| -rw-r--r-- | src/mesa/drivers/verite/vrspan.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/drivers/verite/vrspan.c b/src/mesa/drivers/verite/vrspan.c index 82a9f73..b666f6b 100644 --- a/src/mesa/drivers/verite/vrspan.c +++ b/src/mesa/drivers/verite/vrspan.c @@ -89,7 +89,11 @@ vr_set_buffer(GLcontext *ctx, GLframebuffer *buffer, GLuint bufferBit) } } +#if defined(__BYTE_ORDER__) && __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ #define VR_SWAP16(x) ((GLushort)((((x) & 0xff) << 8) | ((x) >> 8))) +#else +#define VR_SWAP16(x) ((GLushort)(x)) +#endif #define NAME(PREFIX) PREFIX##_565 #define SPAN_VARS \ |
