aboutsummaryrefslogtreecommitdiff
path: root/servers/visual/visual_server_scene.cpp
diff options
context:
space:
mode:
authorreduz2016-12-24 16:23:30 -0300
committerreduz2016-12-24 16:23:30 -0300
commit0d4abf2aa3a336a8a04c83f0576c6b42783ba6e9 (patch)
treeddbbc1aa82a80ccfe7e35a34f34a06cfa1dbb22e /servers/visual/visual_server_scene.cpp
parent3adb42e217d29033e0637ae334790aa1d742d194 (diff)
downloadgodot-0d4abf2aa3a336a8a04c83f0576c6b42783ba6e9.tar.gz
godot-0d4abf2aa3a336a8a04c83f0576c6b42783ba6e9.tar.zst
godot-0d4abf2aa3a336a8a04c83f0576c6b42783ba6e9.zip
fixed a horrible bug on Windows AMD, scenes saved until now in this branch
are no longer valid :(
Diffstat (limited to 'servers/visual/visual_server_scene.cpp')
-rw-r--r--servers/visual/visual_server_scene.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/servers/visual/visual_server_scene.cpp b/servers/visual/visual_server_scene.cpp
index a7876d081..aa97b2ebd 100644
--- a/servers/visual/visual_server_scene.cpp
+++ b/servers/visual/visual_server_scene.cpp
@@ -2699,7 +2699,7 @@ void VisualServerScene::_bake_gi_probe_light(const GIProbeDataHeader *header,con
continue; // too far away
float dt = CLAMP((d+distance_adv)/local_radius,0,1);
- att*= pow(1.0-dt,light_cache.attenuation);
+ att*= powf(1.0-dt,light_cache.attenuation);
}
@@ -2710,7 +2710,7 @@ void VisualServerScene::_bake_gi_probe_light(const GIProbeDataHeader *header,con
continue;
float d = CLAMP(angle/light_cache.spot_angle,1,0);
- att*= pow(1.0-d,light_cache.spot_attenuation);
+ att*= powf(1.0-d,light_cache.spot_attenuation);
}