mirror of
https://github.com/raysan5/raylib.git
synced 2025-10-18 07:41:47 +00:00
Corrected bug on PVR textures loading
This commit is contained in:
@@ -1105,7 +1105,7 @@ static Image LoadPVR(const char *fileName)
|
|||||||
{
|
{
|
||||||
image.width = header.width;
|
image.width = header.width;
|
||||||
image.height = header.height;
|
image.height = header.height;
|
||||||
image.mipmaps = header.numMipmaps + 1;
|
image.mipmaps = header.numMipmaps;
|
||||||
|
|
||||||
// Check data format
|
// Check data format
|
||||||
if (((header.channels[0] == 'l') && (header.channels[1] == 0)) && (header.channelDepth[0] == 8)) image.format = UNCOMPRESSED_GRAYSCALE;
|
if (((header.channels[0] == 'l') && (header.channels[1] == 0)) && (header.channelDepth[0] == 8)) image.format = UNCOMPRESSED_GRAYSCALE;
|
||||||
|
Reference in New Issue
Block a user