diff options
author | Brian Paul <brianp@vmware.com> | 2010-04-20 21:02:09 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2010-04-20 21:02:09 -0600 |
commit | a40e6f220ac7e41126b9815db27d362bda719bf6 (patch) | |
tree | e33791e75fff35af2d90d258d892aef14f9921db /src/mesa/main/get.c | |
parent | bd1d35fb5d3c889b11de5a1d493f711fc091fbed (diff) |
mesa: API and state for GL 3.1 primitive restart
Diffstat (limited to 'src/mesa/main/get.c')
-rw-r--r-- | src/mesa/main/get.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c index cb12737bd7a..f89a798f1b6 100644 --- a/src/mesa/main/get.c +++ b/src/mesa/main/get.c @@ -1954,6 +1954,12 @@ _mesa_GetBooleanv( GLenum pname, GLboolean *params ) case GL_CONTEXT_FLAGS: params[0] = INT_TO_BOOLEAN(ctx->Const.ContextFlags); break; + case GL_PRIMITIVE_RESTART: + params[0] = ctx->Array.PrimitiveRestart; + break; + case GL_PRIMITIVE_RESTART_INDEX: + params[0] = INT_TO_BOOLEAN(ctx->Array.RestartIndex); + break; case GL_CONTEXT_PROFILE_MASK: params[0] = INT_TO_BOOLEAN(ctx->Const.ProfileMask); break; @@ -3856,6 +3862,12 @@ _mesa_GetFloatv( GLenum pname, GLfloat *params ) case GL_CONTEXT_FLAGS: params[0] = (GLfloat)(ctx->Const.ContextFlags); break; + case GL_PRIMITIVE_RESTART: + params[0] = BOOLEAN_TO_FLOAT(ctx->Array.PrimitiveRestart); + break; + case GL_PRIMITIVE_RESTART_INDEX: + params[0] = (GLfloat)(ctx->Array.RestartIndex); + break; case GL_CONTEXT_PROFILE_MASK: params[0] = (GLfloat)(ctx->Const.ProfileMask); break; @@ -5758,6 +5770,12 @@ _mesa_GetIntegerv( GLenum pname, GLint *params ) case GL_CONTEXT_FLAGS: params[0] = ctx->Const.ContextFlags; break; + case GL_PRIMITIVE_RESTART: + params[0] = BOOLEAN_TO_INT(ctx->Array.PrimitiveRestart); + break; + case GL_PRIMITIVE_RESTART_INDEX: + params[0] = ctx->Array.RestartIndex; + break; case GL_CONTEXT_PROFILE_MASK: params[0] = ctx->Const.ProfileMask; break; @@ -7661,6 +7679,12 @@ _mesa_GetInteger64v( GLenum pname, GLint64 *params ) case GL_CONTEXT_FLAGS: params[0] = (GLint64)(ctx->Const.ContextFlags); break; + case GL_PRIMITIVE_RESTART: + params[0] = BOOLEAN_TO_INT64(ctx->Array.PrimitiveRestart); + break; + case GL_PRIMITIVE_RESTART_INDEX: + params[0] = (GLint64)(ctx->Array.RestartIndex); + break; case GL_CONTEXT_PROFILE_MASK: params[0] = (GLint64)(ctx->Const.ProfileMask); break; |