X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=laserbrain_demo;a=blobdiff_plain;f=src%2Fpost.cc;h=885a2123d6019e4e4a92989fdc4d55d90af13249;hp=b675f5b77c127b788e52de4c11136d0af53922dc;hb=92e1b315a32da123b2f8d7bb633375033a10c66d;hpb=7ffa5c50d9254af9bd746fc5e6bc8e5db8eda675 diff --git a/src/post.cc b/src/post.cc index b675f5b..885a212 100644 --- a/src/post.cc +++ b/src/post.cc @@ -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) {