You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Add closest_power_of_2 func and implement mix_rate/latency on OS X
This commit is contained in:
@@ -1001,11 +1001,11 @@ void VisualServerCanvas::canvas_light_set_shadow_buffer_size(RID p_light, int p_
|
||||
RasterizerCanvas::Light *clight = canvas_light_owner.get(p_light);
|
||||
ERR_FAIL_COND(!clight);
|
||||
|
||||
int new_size = nearest_power_of_2(p_size);
|
||||
int new_size = next_power_of_2(p_size);
|
||||
if (new_size == clight->shadow_buffer_size)
|
||||
return;
|
||||
|
||||
clight->shadow_buffer_size = nearest_power_of_2(p_size);
|
||||
clight->shadow_buffer_size = next_power_of_2(p_size);
|
||||
|
||||
if (clight->shadow_buffer.is_valid()) {
|
||||
VSG::storage->free(clight->shadow_buffer);
|
||||
|
||||
Reference in New Issue
Block a user