From: Brian Paul Date: Mon, 19 Sep 2011 14:13:38 +0000 (-0600) Subject: mesa: generate GL_INVALID_OPERATION in glIsEnabledIndex() between Begin/End X-Git-Tag: 062012170305~4422 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=386ec5e80e34e1164d749eee2078f2dfc8ff2b57;p=profile%2Fivi%2Fmesa.git mesa: generate GL_INVALID_OPERATION in glIsEnabledIndex() between Begin/End --- diff --git a/src/mesa/main/enable.c b/src/mesa/main/enable.c index 2d857c1..ba24ca7 100644 --- a/src/mesa/main/enable.c +++ b/src/mesa/main/enable.c @@ -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) {