summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2011-09-19 08:13:38 -0600
committerBrian Paul <[email protected]>2011-09-19 08:13:47 -0600
commit386ec5e80e34e1164d749eee2078f2dfc8ff2b57 (patch)
tree60d93f5c67007bac9dc507ca1e93edf051e9c01d /src/mesa/main
parent57b8f13aa4dea6c8056f60574b0d4abccc2dbb49 (diff)
mesa: generate GL_INVALID_OPERATION in glIsEnabledIndex() between Begin/End
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/enable.c1
1 files changed, 1 insertions, 0 deletions
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) {