- Renderer::Push push(renderer);
- renderer.set_shader_program(&blur_shader, &blur_shdata_common);
- for(unsigned i=0; i<2; ++i)
- {
- BindRestore bind_fbo(fbo[i]);
- Renderer::Push push2(renderer);
- renderer.set_texture(i ? &tex[0] : &src);
- renderer.add_shader_data(blur_shdata[i]);
- quad.draw(renderer);
- }
+ BindRestore bind_fbo(target[i]->get_framebuffer());
+ Renderer::Push push2(renderer);
+ renderer.set_texture(i ? &target[0]->get_target_texture(RENDER_COLOR) : &src);
+ renderer.add_shader_data(blur_shdata[i]);
+ quad.draw(renderer);