mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-01-23 01:21:57 -05:00
Fix textures on big-endian systems.
We must not forget our PowerPC comrades
This commit is contained in:
parent
80ee35fdce
commit
955cfd151f
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue