1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

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

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,