aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/mesa/main/enable.c
diff options
context:
space:
mode:
Diffstat (limited to 'mesalib/src/mesa/main/enable.c')
-rw-r--r--mesalib/src/mesa/main/enable.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mesalib/src/mesa/main/enable.c b/mesalib/src/mesa/main/enable.c
index 4bf1809e7..ba24ca77c 100644
--- a/mesalib/src/mesa/main/enable.c
+++ b/mesalib/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) {
@@ -1072,6 +1073,8 @@ GLboolean GLAPIENTRY
_mesa_IsEnabled( GLenum cap )
{
GET_CURRENT_CONTEXT(ctx);
+ ASSERT_OUTSIDE_BEGIN_END_WITH_RETVAL(ctx, 0);
+
switch (cap) {
case GL_ALPHA_TEST:
return ctx->Color.AlphaEnabled;