Browse Source

Fixed compiling on windows after .hdr support
Changed type to avoid casting.

zer0problem 8 years ago
parent
commit
cc05a90bf7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/hdr/image_loader_hdr.cpp

+ 1 - 1
modules/hdr/image_loader_hdr.cpp

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