Merge pull request #8990 from zer0problem/master

Fixed .hdr support to compile on windows
This commit is contained in:
Rémi Verschelde 2017-06-05 15:45:53 +02:00 committed by GitHub
commit 075c7d8133

View file

@ -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,