1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-11 13:10:58 +00:00

Fixes to 2D lights, closes #24750

This commit is contained in:
Juan Linietsky
2019-01-17 10:40:36 -03:00
parent e8d31cc765
commit 7478f468b2
6 changed files with 23 additions and 25 deletions

View File

@@ -1110,6 +1110,7 @@ void VisualServerCanvas::canvas_light_set_shadow_buffer_size(RID p_light, int p_
if (new_size == clight->shadow_buffer_size)
return;
print_line("create shadow buffer: " + itos(p_size));
clight->shadow_buffer_size = next_power_of_2(p_size);
if (clight->shadow_buffer.is_valid()) {