Skip to content
Permalink
Browse files

Fix textures on big-endian systems.

We must not forget our PowerPC comrades
  • Loading branch information...
UnknownShadow200 committed Oct 7, 2019
1 parent 80ee35f commit 955cfd151f79d704e10749f89aad8b692c6673db
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/Bitmap.h
@@ -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

0 comments on commit 955cfd1

Please sign in to comment.
You can’t perform that action at this time.