you should use http://libglow.org/doxygen-master/classglow_1_1_state.html here, if not switch the whole project (which shouldn't be too much) to http://libglow.org/doxygen-master/classglowutils_1_1_stacked_state.html

glow::State should do the CheckGLError stuff