for(unsigned i=0; i<2; ++i)
{
blur_shdata[i].uniform(loc, 0);
+ tex[i].set_min_filter(NEAREST);
tex[i].storage(RGB16F, w, h, 0);
tex[i].image(0, RGB, UNSIGNED_BYTE, 0);
- tex[i].set_min_filter(NEAREST);
}
combine_shdata.uniform(combine_shader.get_uniform_location("source"), 1);
src.bind_to(1);
quad.draw();
Program::unbind();
- Texture::unbind();
- TexUnit::activate(0);
- Texture::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);