mesa: generate GL_INVALID_OPERATION in glIsEnabledIndex() between Begin/End
authorBrian Paul <brianp@vmware.com>
Mon, 19 Sep 2011 14:13:38 +0000 (08:13 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 19 Sep 2011 14:13:47 +0000 (08:13 -0600)
src/mesa/main/enable.c

index 2d857c1481c78f88f9c27d97de2f3da3f239a8ae..ba24ca77c53903f5250fe1f2e4a52679bce66b65 100644 (file)
@@ -1016,6 +1016,7 @@ GLboolean GLAPIENTRY
 _mesa_IsEnabledIndexed( GLenum cap, GLuint index )
 {
    GET_CURRENT_CONTEXT(ctx);
+   ASSERT_OUTSIDE_BEGIN_END_WITH_RETVAL(ctx, 0);
    switch (cap) {
    case GL_BLEND:
       if (index >= ctx->Const.MaxDrawBuffers) {