Fix textures on big-endian systems.

We must not forget our PowerPC comrades
This commit is contained in:
UnknownShadow200 2019-10-07 19:40:55 +11:00
parent 80ee35fdce
commit 955cfd151f

View file

@ -13,6 +13,11 @@ typedef cc_uint32 BitmapCol;
#define BITMAPCOL_G_SHIFT 8
#define BITMAPCOL_B_SHIFT 16
#define BITMAPCOL_A_SHIFT 24
#elif defined CC_BIG_ENDIAN
#define BITMAPCOL_A_SHIFT 0
#define BITMAPCOL_R_SHIFT 8
#define BITMAPCOL_G_SHIFT 16
#define BITMAPCOL_B_SHIFT 24
#else
#define BITMAPCOL_B_SHIFT 0
#define BITMAPCOL_G_SHIFT 8