Fixed compiling on windows after .hdr support
Changed type to avoid casting.
This commit is contained in:
parent
74a0bed3d2
commit
cc05a90bf7
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue