twn_textures.c: add debug hints about unportable texture dimensions

This commit is contained in:
2024-09-23 09:34:27 +03:00
parent 752dbaad8a
commit 66678a27cf
2 changed files with 12 additions and 0 deletions

View File

@ -170,4 +170,9 @@ static inline t_fvec2 fast_cossine(float a) {
};
}
static inline bool is_power_of_two(int x)
{
return (x != 0) && ((x & (x - 1)) == 0);
}
#endif