X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=laserbrain_demo;a=blobdiff_plain;f=src%2Fpost.cc;h=a4d13cf763f42bbeb5a5abf8395da8592ce6de85;hp=b675f5b77c127b788e52de4c11136d0af53922dc;hb=6ef619c6d92c698728576a4ec1c798a0f716d9a4;hpb=3aacec4aee795e703e8eb9d6852ca47a3be065ee diff --git a/src/post.cc b/src/post.cc index b675f5b..a4d13cf 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(); @@ -15,7 +16,6 @@ void slow_post(unsigned int sdr) glPushAttrib(GL_ENABLE_BIT); glDisable(GL_DEPTH_TEST); - glDisable(GL_LIGHTING); glUseProgram(sdr); @@ -36,17 +36,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) {