This commit is contained in:
Ray 2024-08-07 01:01:45 +02:00
parent db8b199363
commit 5af331d708
2 changed files with 2 additions and 2 deletions

View File

@ -4993,7 +4993,7 @@ static int rlGetPixelDataSize(int width, int height, int format)
default: break;
}
float bytesPerPixel = (float)bpp/8.0f;
double bytesPerPixel = (double)bpp/8.0;
dataSize = (int)(bytesPerPixel*width*height); // Total data size in bytes
// Most compressed formats works on 4x4 blocks,

View File

@ -5403,7 +5403,7 @@ int GetPixelDataSize(int width, int height, int format)
default: break;
}
float bytesPerPixel = (float)bpp/8.0f;
double bytesPerPixel = (double)bpp/8.0;
dataSize = (int)(bytesPerPixel*width*height); // Total data size in bytes
// Most compressed formats works on 4x4 blocks,