diff --git a/src/rtextures.c b/src/rtextures.c index e63077103..ac21b9514 100644 --- a/src/rtextures.c +++ b/src/rtextures.c @@ -5333,7 +5333,7 @@ Color GetPixelColor(const void *srcPtr, int format) { color.r = (unsigned char)((((unsigned short *)srcPtr)[0] >> 11)*255/31); color.g = (unsigned char)(((((unsigned short *)srcPtr)[0] >> 6) & 0b0000000000011111)*255/31); - color.b = (unsigned char)((((unsigned short *)srcPtr)[0] & 0b0000000000011111)*255/31); + color.b = (unsigned char)(((((unsigned short *)srcPtr)[0] >> 1) & 0b0000000000011111)*255/31); color.a = (((unsigned short *)srcPtr)[0] & 0b0000000000000001)? 255 : 0; } break;