Add closest_power_of_2 func and implement mix_rate/latency on OS X

This commit is contained in:
Marcelo Fernandez 2017-08-18 12:10:21 -03:00
parent 49028e0c49
commit 647c4ae5bf
25 changed files with 136 additions and 87 deletions

View file

@ -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));
}