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");
}
/* 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);
- overlay_tex(fbtex, 1.0);
+ overlay_tex(post_fbtex, 1.0);
}
}