From acfa967e891997e862d1c77dac21ae9a484017c5 Mon Sep 17 00:00:00 2001 From: Ray Date: Thu, 27 Feb 2020 13:56:27 +0100 Subject: [PATCH] Corrected issue with variable name --- src/textures.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/textures.c b/src/textures.c index aedfabc6b..fcd4d03cc 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);