display: fix lighting being disabled when only AmbientLight is on

This commit is contained in:
rdb 2019-02-10 16:19:24 +01:00
parent 33d11dba27
commit f741c9476f

View File

@ -2823,6 +2823,12 @@ do_issue_light() {
}
} else {
// Don't forget to still enable lighting if we have only an ambient light.
if (!_lighting_enabled) {
enable_lighting(true);
_lighting_enabled = true;
}
set_ambient_light(target_light->get_ambient_contribution());
}