1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-17 14:11:06 +00:00

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

@@ -89,8 +89,8 @@ void image_compress_squish(Image *p_image) {
ERR_FAIL_COND(!w || w % 4 != 0);
ERR_FAIL_COND(!h || h % 4 != 0);
} else {
ERR_FAIL_COND(!w || w != nearest_power_of_2(w));
ERR_FAIL_COND(!h || h != nearest_power_of_2(h));
ERR_FAIL_COND(!w || w != next_power_of_2(w));
ERR_FAIL_COND(!h || h != next_power_of_2(h));
};
if (p_image->get_format() >= Image::FORMAT_BC1)