From 386ec5e80e34e1164d749eee2078f2dfc8ff2b57 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 19 Sep 2011 08:13:38 -0600 Subject: [PATCH] mesa: generate GL_INVALID_OPERATION in glIsEnabledIndex() between Begin/End --- src/mesa/main/enable.c | 1 + 1 file changed, 1 insertion(+) 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) { -- 2.30.2