twn_textures.c: add debug hints about unportable texture dimensions
This commit is contained in:
1 parent
752dbaad8a
commit
66678a27cf
2 files changed
+12
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user