projects
/
demo_prior
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
first half-assed attempt at old wahsed-out post effect failed
[demo_prior]
/
src
/
demo.c
diff --git
a/src/demo.c
b/src/demo.c
index
3841066
..
a4bb0c7
100644
(file)
--- a/
src/demo.c
+++ b/
src/demo.c
@@
-34,7
+34,7
@@
int demo_init(void)
post_init();
post_init();
- if(!(sdr_gamma = create_program_load("sdr/gamma.v.glsl", "sdr/gamma.p.glsl"))) {
+ if(!(sdr_gamma = create_program_load("sdr/post.v.glsl", "sdr/gamma.p.glsl"))) {
fprintf(stderr, "Warning: failed to load the gamma correction shader\n");
}
fprintf(stderr, "Warning: failed to load the gamma correction shader\n");
}
@@
-103,11
+103,11
@@
void demo_display(void)
/* no-srgb gamma correction fallback */
if(!opt.srgb) {
/* no-srgb gamma correction fallback */
if(!opt.srgb) {
- glBindTexture(GL_TEXTURE_2D, fbtex[0].id);
+ glBindTexture(GL_TEXTURE_2D, post_fbtex[0].id);
glCopyTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, 0, 0, win_width, win_height);
glUseProgram(sdr_gamma);
glCopyTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, 0, 0, win_width, win_height);
glUseProgram(sdr_gamma);
- overlay_tex(fbtex, 1.0);
+ overlay_tex(post_fbtex, 1.0);
}
}
}
}