From 4e4b6bef21a3913e924ac83259cf00e18b17f780 Mon Sep 17 00:00:00 2001 From: Gatonevermind Date: Mon, 11 May 2015 17:37:19 +0200 Subject: [PATCH] Corrected bug on PVR textures loading --- src/textures.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/textures.c b/src/textures.c index 176ed2d7..d4ad478b 100644 --- a/src/textures.c +++ b/src/textures.c @@ -1105,7 +1105,7 @@ static Image LoadPVR(const char *fileName) { image.width = header.width; image.height = header.height; - image.mipmaps = header.numMipmaps + 1; + image.mipmaps = header.numMipmaps; // Check data format if (((header.channels[0] == 'l') && (header.channels[1] == 0)) && (header.channelDepth[0] == 8)) image.format = UNCOMPRESSED_GRAYSCALE;