new render target class while working on the exhibit UI
[laserbrain_demo] / src / post.cc
index b675f5b..885a212 100644 (file)
@@ -1,5 +1,6 @@
 #include "opengl.h"
 #include "app.h"
+#include "texture.h"   // next_pow2
 
 static void update_fbtex();
 
@@ -36,17 +37,6 @@ void slow_post(unsigned int sdr)
        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) {