GL state machine: Fix GLES2 builds