remove Font.next_power_of_2()
This commit is contained in:
parent
97e4dde563
commit
69f568cc7a
@ -48,16 +48,4 @@ class Font
|
|||||||
{
|
{
|
||||||
Font_Free(font);
|
Font_Free(font);
|
||||||
}
|
}
|
||||||
|
|
||||||
uint next_power_of_2(uint n)
|
|
||||||
{
|
|
||||||
n--;
|
|
||||||
n |= n >> 1u;
|
|
||||||
n |= n >> 2u;
|
|
||||||
n |= n >> 4u;
|
|
||||||
n |= n >> 8u;
|
|
||||||
n |= n >> 16u;
|
|
||||||
n++;
|
|
||||||
return n;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user