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
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue