@@ -3793,7 +3793,7 @@ unsigned char *rlReadScreenPixels(int width, int height)
37933793{
37943794 unsigned char * imgData = (unsigned char * )RL_CALLOC (width * height * 4 , sizeof (unsigned char ));
37953795
3796- // NOTE: Buffer retrieved is GL_FRONT in single-buffered configurations
3796+ // NOTE: Buffer retrieved is GL_FRONT in single-buffered configurations
37973797 // and GL_BACK in double-buffered configurations, make sure to call it at the end of frame
37983798 //glReadBuffer(GL_BACK);
37993799
@@ -5243,7 +5243,7 @@ static int rlGetPixelDataSize(int width, int height, int format)
52435243 int blockHeight = (height + 3 )/4 ;
52445244 unsigned long long dataSizeBytes = (unsigned long long )blockWidth * blockHeight * 8 ;
52455245 if (dataSizeBytes < INT_MAX ) dataSize = (int )dataSizeBytes ;
5246-
5246+
52475247 } break ;
52485248 case RL_PIXELFORMAT_COMPRESSED_DXT3_RGBA :
52495249 case RL_PIXELFORMAT_COMPRESSED_DXT5_RGBA :
@@ -5254,15 +5254,15 @@ static int rlGetPixelDataSize(int width, int height, int format)
52545254 int blockHeight = (height + 3 )/4 ;
52555255 unsigned long long dataSizeBytes = (unsigned long long )blockWidth * blockHeight * 16 ;
52565256 if (dataSizeBytes < INT_MAX ) dataSize = (int )dataSizeBytes ;
5257-
5257+
52585258 } break ;
52595259 case RL_PIXELFORMAT_COMPRESSED_ASTC_8x8_RGBA : // 4 bytes per each 4x4 block
52605260 {
52615261 int blockWidth = (width + 3 )/4 ;
52625262 int blockHeight = (height + 3 )/4 ;
52635263 unsigned long long dataSizeBytes = (unsigned long long )blockWidth * blockHeight * 4 ;
52645264 if (dataSizeBytes < INT_MAX ) dataSize = (int )dataSizeBytes ;
5265-
5265+
52665266 } break ;
52675267 default : break ;
52685268 }
@@ -5274,7 +5274,7 @@ static int rlGetPixelDataSize(int width, int height, int format)
52745274 unsigned long long dataSizeBytes = ((unsigned long long )width * height * bpp ) >> 3 ; // Get size in bytes (dividing by 8)
52755275 if (dataSizeBytes < INT_MAX ) dataSize = (int )dataSizeBytes ;
52765276 }
5277-
5277+
52785278 if (dataSize == 0 ) TRACELOG (LOG_WARNING , "Requested image size is larger than 2GB, it can not be allocated" );
52795279
52805280 return dataSize ;
0 commit comments