projects
/
laserbrain_demo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
new render target class while working on the exhibit UI
[laserbrain_demo]
/
src
/
post.cc
diff --git
a/src/post.cc
b/src/post.cc
index
b675f5b
..
885a212
100644
(file)
--- a/
src/post.cc
+++ b/
src/post.cc
@@
-1,5
+1,6
@@
#include "opengl.h"
#include "app.h"
#include "opengl.h"
#include "app.h"
+#include "texture.h" // next_pow2
static void update_fbtex();
static void update_fbtex();
@@
-36,17
+37,6
@@
void slow_post(unsigned int sdr)
glPopAttrib();
}
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) {
static void update_fbtex()
{
if(win_width <= fb_tex_width && win_height <= fb_tex_height) {