summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/hdr/image_loader_hdr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/hdr/image_loader_hdr.cpp b/modules/hdr/image_loader_hdr.cpp
index 4c897e66af..4f11d77074 100644
--- a/modules/hdr/image_loader_hdr.cpp
+++ b/modules/hdr/image_loader_hdr.cpp
@@ -125,7 +125,7 @@ Error ImageLoaderHDR::load_image(Ref<Image> p_image, FileAccess *f) {
//convert
for (int i = 0; i < width * height; i++) {
- float exp = pow(2, ptr[3] - 128);
+ float exp = pow(2.0f, ptr[3] - 128.0f);
Color c(
ptr[0] * exp / 255.0,