// This needs to be before everything else, since it could
// even apply to inputs (if they are the only effect).
if (node->outgoing_links.empty() &&
- node->output_gamma_curve != output_format.gamma_curve) {
+ node->output_gamma_curve != output_format.gamma_curve &&
+ node->output_gamma_curve != GAMMA_LINEAR) {
return true;
}
finalized = true;
}
-void EffectChain::render_to_fbo(GLuint fbo, unsigned width, unsigned height)
+void EffectChain::render_to_fbo(GLuint dest_fbo, unsigned width, unsigned height)
{
assert(finalized);
// And now the output.
if (phase == phases.size() - 1) {
// Last phase goes to the output the user specified.
- glBindFramebuffer(GL_FRAMEBUFFER, fbo);
+ glBindFramebuffer(GL_FRAMEBUFFER, dest_fbo);
check_error();
glViewport(x, y, width, height);
} else {