caba02d42a
The state object isn't used anywhere else, so there is no need to revert the state. And the comment is just wrong: It doesn't matter which textures are bound on framebuffer binding, it only matters at draw time. And we reset all bindings before the draw call. So let's use gl_state as it is designed to avoid flipping states.