aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGatonevermind <kevingatotvjb12013@cev.com>2015-05-11 17:37:19 +0200
committerGatonevermind <kevingatotvjb12013@cev.com>2015-05-11 17:37:19 +0200
commit4e4b6bef21a3913e924ac83259cf00e18b17f780 (patch)
tree3ac144eeb658de1d11fb453efeb0363f9a204a2c /src
parenta7714c842f72b8d41829caa7564f91abb3ffbd6b (diff)
downloadraylib-4e4b6bef21a3913e924ac83259cf00e18b17f780.tar.gz
raylib-4e4b6bef21a3913e924ac83259cf00e18b17f780.zip
Corrected bug on PVR textures loading
Diffstat (limited to 'src')
-rw-r--r--src/textures.c2
1 files changed, 1 insertions, 1 deletions
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;