blur_shader.bind();
fbo.bind();
src.bind_to(0);
- disable(DEPTH_TEST);
- disable(BLEND);
+ Bind unbind_dtest(static_cast<DepthTest *>(0), true);
+ Bind unbind_blend(static_cast<Blend *>(0), true);
for(unsigned i=0; i<2; ++i)
{
fbo.attach(COLOR_ATTACHMENT0, tex[i], 0);
Program::unbind();
Texture::unbind_from(1);
Texture::unbind_from(0);
- // XXX Should check if the modes were enabled in the first place
- enable(DEPTH_TEST);
- enable(BLEND);
}
} // namespace GL