summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/get_gen.py
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2010-04-20 21:02:09 -0600
committerBrian Paul <[email protected]>2010-04-20 21:02:09 -0600
commita40e6f220ac7e41126b9815db27d362bda719bf6 (patch)
treee33791e75fff35af2d90d258d892aef14f9921db /src/mesa/main/get_gen.py
parentbd1d35fb5d3c889b11de5a1d493f711fc091fbed (diff)
mesa: API and state for GL 3.1 primitive restart
Diffstat (limited to 'src/mesa/main/get_gen.py')
-rw-r--r--src/mesa/main/get_gen.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/main/get_gen.py b/src/mesa/main/get_gen.py
index 63b64a97a93..0279ec9d1d3 100644
--- a/src/mesa/main/get_gen.py
+++ b/src/mesa/main/get_gen.py
@@ -1145,6 +1145,12 @@ StateVars = [
( "GL_MINOR_VERSION", GLint, ["ctx->VersionMinor"], "", NoState, NoExt ),
( "GL_CONTEXT_FLAGS", GLint, ["ctx->Const.ContextFlags"], "", NoState, NoExt ),
+ # GL 3.1
+ ( "GL_PRIMITIVE_RESTART", GLboolean,
+ ["ctx->Array.PrimitiveRestart"], "", NoState, NoExt ),
+ ( "GL_PRIMITIVE_RESTART_INDEX", GLint,
+ ["ctx->Array.RestartIndex"], "", NoState, NoExt ),
+
# GL 3.2
( "GL_CONTEXT_PROFILE_MASK", GLint, ["ctx->Const.ProfileMask"], "",
NoState, NoExt )