1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +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 //convert
for (int i = 0; i < width * height; i++) { 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( Color c(
ptr[0] * exp / 255.0, ptr[0] * exp / 255.0,