+ // Restore indexed blending state (we've already restored the global state, which sets all the indexed states)
+ for (uint i = 0; i < context_info.get_max_draw_buffers(); i++)
+ {
+ GLint enabled = 0;
+ if (get(GL_BLEND, i, &enabled, 1, true))
+ {
+ if (enabled)
+ {
+ GL_ENTRYPOINT(glEnablei)(GL_BLEND, i);
+ VOGL_CHECK_GL_ERROR;
+ }
+ else
+ {
+ GL_ENTRYPOINT(glDisablei)(GL_BLEND, i);
+ VOGL_CHECK_GL_ERROR;
+ }
+ }
+ }
+