#include "opengl.h"
#include "app.h"
+#include "texture.h" // next_pow2
static void update_fbtex();
glPopAttrib();
}
-static int next_pow2(int x)
-{
- x--;
- x = (x >> 1) | x;
- x = (x >> 2) | x;
- x = (x >> 4) | x;
- x = (x >> 8) | x;
- x = (x >> 16) | x;
- return x + 1;
-}
-
static void update_fbtex()
{
if(win_width <= fb_tex_width && win_height <= fb_tex_height) {