From cc05a90bf742f9dda8f9e92fc921d30d41f5d327 Mon Sep 17 00:00:00 2001 From: zer0problem Date: Mon, 29 May 2017 21:26:57 +0200 Subject: Fixed compiling on windows after .hdr support Changed type to avoid casting. --- modules/hdr/image_loader_hdr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') 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 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, -- cgit v1.2.3