diff options
author | zer0problem <zer0zk0@hotmail.com> | 2017-05-29 21:26:57 +0200 |
---|---|---|
committer | Tommi I <allmynamearegone@gmail.com> | 2017-05-31 13:11:11 +0200 |
commit | cc05a90bf742f9dda8f9e92fc921d30d41f5d327 (patch) | |
tree | c9090ea0e2da74959d27589bcd77954110d2431d /modules | |
parent | 74a0bed3d2dd2020908bd396991f0f2ab0daf096 (diff) |
Fixed compiling on windows after .hdr support
Changed type to avoid casting.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/hdr/image_loader_hdr.cpp | 2 |
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, |