mirror of
https://github.com/godotengine/godot.git
synced 2024-11-24 13:12:42 +00:00
Merge pull request #8990 from zer0problem/master
Fixed .hdr support to compile on windows
This commit is contained in:
commit
075c7d8133
@ -131,7 +131,7 @@ Error ImageLoaderHDR::load_image(Ref<Image> p_image, FileAccess *f, bool p_force
|
||||
//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,
|
||||
|
Loading…
Reference in New Issue
Block a user