diff options
author | Dylan Baker <[email protected]> | 2018-09-06 15:14:24 -0700 |
---|---|---|
committer | Dylan Baker <[email protected]> | 2019-11-05 16:39:55 +0000 |
commit | 453d52acd8f9de9ed06b9e65bfba1baaf607cf96 (patch) | |
tree | 0b626ee6cf96091baa37e96ec42fcafe6c11615a /src/mesa/main/texstore.c | |
parent | f9f60da813e69aacf541d25a24622c896f15ba98 (diff) |
mesa/main: replace uses of _mesa_little_endian with preprocessor
Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/mesa/main/texstore.c')
-rwxr-xr-x | src/mesa/main/texstore.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mesa/main/texstore.c b/src/mesa/main/texstore.c index 207695041a7..77c4bccbe07 100755 --- a/src/mesa/main/texstore.c +++ b/src/mesa/main/texstore.c @@ -280,8 +280,6 @@ _mesa_texstore_z16(TEXSTORE_PARAMS) static GLboolean _mesa_texstore_ycbcr(TEXSTORE_PARAMS) { - const GLboolean littleEndian = _mesa_little_endian(); - (void) ctx; (void) dims; (void) baseInternalFormat; assert((dstFormat == MESA_FORMAT_YCBCR) || @@ -305,7 +303,7 @@ _mesa_texstore_ycbcr(TEXSTORE_PARAMS) if (srcPacking->SwapBytes ^ (srcType == GL_UNSIGNED_SHORT_8_8_REV_MESA) ^ (dstFormat == MESA_FORMAT_YCBCR_REV) ^ - !littleEndian) { + !PIPE_ARCH_LITTLE_ENDIAN) { GLint img, row; for (img = 0; img < srcDepth; img++) { GLubyte *dstRow = dstSlices[img]; |