summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2017-06-05 15:45:53 +0200
committerGitHub <noreply@github.com>2017-06-05 15:45:53 +0200
commit075c7d8133e4fde353ab54a255638b0c9a3740a5 (patch)
tree155080880f9d2ecdacbae4ff24169d9883e305bd
parentd3afecf68139ad3c0f7504ff25fe1a97b61c65f1 (diff)
parentcc05a90bf742f9dda8f9e92fc921d30d41f5d327 (diff)
Merge pull request #8990 from zer0problem/master
Fixed .hdr support to compile on windows
-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 85819104cf..19df27b962 100644
--- a/modules/hdr/image_loader_hdr.cpp
+++ b/modules/hdr/image_loader_hdr.cpp
@@ -131,7 +131,7 @@ Error ImageLoaderHDR::load_image(Ref<Image> p_image, FileAccess *f, bool p_force
//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,