summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSasLuca <[email protected]>2020-03-08 17:03:23 +0000
committerGitHub <[email protected]>2020-03-08 18:03:23 +0100
commit680f9d5772015fcf0edc3cb6b38cb7efda9d4bf1 (patch)
treeb60a9ed63f20cc3d4bdf760e3e7c5be60bd8d083
parent20d8889a03ecdd99e70a61137e844b0ced07e809 (diff)
downloadraylib-680f9d5772015fcf0edc3cb6b38cb7efda9d4bf1.tar.gz
raylib-680f9d5772015fcf0edc3cb6b38cb7efda9d4bf1.zip
Changed `if` to `else if`. (#1122)
-rw-r--r--src/textures.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/textures.c b/src/textures.c
index 1814b203..d5bf5eaf 100644
--- a/src/textures.c
+++ b/src/textures.c
@@ -3118,7 +3118,7 @@ static Image LoadDDS(const char *fileName)
}
}
}
- if (ddsHeader.ddspf.flags == 0x40 && ddsHeader.ddspf.rgbBitCount == 24) // DDS_RGB, no compressed
+ else if (ddsHeader.ddspf.flags == 0x40 && ddsHeader.ddspf.rgbBitCount == 24) // DDS_RGB, no compressed
{
// NOTE: not sure if this case exists...
image.data = (unsigned char *)RL_MALLOC(image.width*image.height*3*sizeof(unsigned char));