1
0
mirror of https://github.com/godotengine/godot synced 2024-07-08 19:10:44 +00:00

Fixed compiling on windows after .hdr support

Changed type to avoid casting.
This commit is contained in:
zer0problem 2017-05-29 21:26:57 +02:00 committed by Tommi I
parent 74a0bed3d2
commit cc05a90bf7

View File

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