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-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=386ec5e80e34e1164d749eee2078f2dfc8ff2b57;p=mesa.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 2d857c1481c..ba24ca77c53 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) {