- if(i+1<postproc.size())
- target[1-j]->get_framebuffer().bind();
- else
- out_fbo->bind();
- const Texture2D &color = target[j]->get_target_texture(RENDER_COLOR);
- const Texture2D &depth = target[j]->get_target_texture(RENDER_DEPTH);
+ renderer.set_framebuffer(i+1<postproc.size() ? &target[1-j]->get_framebuffer() : out_fbo);
+ const Texture2D &color = target[j]->get_target_texture(COLOR_ATTACHMENT);
+ const Texture2D &depth = target[j]->get_target_texture(DEPTH_ATTACHMENT);