internal/glutil: more common state
gl2: all state guarding is implemented now