mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Add closest_power_of_2 func and implement mix_rate/latency on OS X
This commit is contained in:
parent
49028e0c49
commit
647c4ae5bf
25 changed files with 136 additions and 87 deletions
|
|
@ -1333,7 +1333,7 @@ void BakedLightBaker::_make_octree_texture() {
|
|||
} else {
|
||||
|
||||
baked_light_texture_w = otex_w;
|
||||
baked_light_texture_h = nearest_power_of_2(row);
|
||||
baked_light_texture_h = next_power_of_2(row);
|
||||
print_line("w: " + itos(otex_w));
|
||||
print_line("h: " + itos(row));
|
||||
break;
|
||||
|
|
@ -1419,7 +1419,7 @@ void BakedLightBaker::_make_octree_texture() {
|
|||
}
|
||||
}
|
||||
|
||||
baked_octree_texture_h = nearest_power_of_2(baked_octree_texture_h);
|
||||
baked_octree_texture_h = next_power_of_2(baked_octree_texture_h);
|
||||
print_line("RESULT! " + itos(baked_octree_texture_w) + "," + itos(baked_octree_texture_h));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue