summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorRay <[email protected]>2020-02-27 13:56:27 +0100
committerRay <[email protected]>2020-02-27 13:56:27 +0100
commitacfa967e891997e862d1c77dac21ae9a484017c5 (patch)
tree3c239a1715bed635aad6e7e824fd932b86f05f07 /src
parent5ff07762351669e39e99a1751a97104a6db2c65f (diff)
downloadraylib-acfa967e891997e862d1c77dac21ae9a484017c5.tar.gz
raylib-acfa967e891997e862d1c77dac21ae9a484017c5.zip
Corrected issue with variable name
Diffstat (limited to 'src')
-rw-r--r--src/textures.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/textures.c b/src/textures.c
index aedfabc6..fcd4d03c 100644
--- a/src/textures.c
+++ b/src/textures.c
@@ -261,9 +261,9 @@ Image LoadImage(const char *fileName)
image.mipmaps = 1;
- if (imgBpp == 1) image.format = UNCOMPRESSED_R32;
- else if (imgBpp == 3) image.format = UNCOMPRESSED_R32G32B32;
- else if (imgBpp == 4) image.format = UNCOMPRESSED_R32G32B32A32;
+ if (comp == 1) image.format = UNCOMPRESSED_R32;
+ else if (comp == 3) image.format = UNCOMPRESSED_R32G32B32;
+ else if (comp == 4) image.format = UNCOMPRESSED_R32G32B32A32;
else
{
TRACELOG(LOG_WARNING, "[%s] HDR Image fileformat not supported", fileName);