summaryrefslogtreecommitdiff
path: root/src/mesa/main/enable.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/main/enable.c')
-rw-r--r--src/mesa/main/enable.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mesa/main/enable.c b/src/mesa/main/enable.c
index 7b66760005..5806f9c098 100644
--- a/src/mesa/main/enable.c
+++ b/src/mesa/main/enable.c
@@ -1,4 +1,4 @@
-/* $Id: enable.c,v 1.37 2000/12/26 05:09:28 keithw Exp $ */
+/* $Id: enable.c,v 1.38 2000/12/27 22:52:45 keithw Exp $ */
/*
* Mesa 3-D graphics library
@@ -755,6 +755,8 @@ void
_mesa_Enable( GLenum cap )
{
GET_CURRENT_CONTEXT(ctx);
+ ASSERT_OUTSIDE_BEGIN_END(ctx);
+
_mesa_set_enable( ctx, cap, GL_TRUE );
}
@@ -764,6 +766,8 @@ void
_mesa_Disable( GLenum cap )
{
GET_CURRENT_CONTEXT(ctx);
+ ASSERT_OUTSIDE_BEGIN_END(ctx);
+
_mesa_set_enable( ctx, cap, GL_FALSE );
}