mesa: generate GL_INVALID_OPERATION in glIsEnabledIndex() between Begin/End

This commit is contained in:
Brian Paul 2011-09-19 08:13:38 -06:00
parent 57b8f13aa4
commit 386ec5e80e

View 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) {