diff options
Diffstat (limited to 'src/mesa/main/get.c')
-rw-r--r-- | src/mesa/main/get.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c index e9ccbdab0bf..cb12737bd7a 100644 --- a/src/mesa/main/get.c +++ b/src/mesa/main/get.c @@ -1954,6 +1954,9 @@ _mesa_GetBooleanv( GLenum pname, GLboolean *params ) case GL_CONTEXT_FLAGS: params[0] = INT_TO_BOOLEAN(ctx->Const.ContextFlags); break; + case GL_CONTEXT_PROFILE_MASK: + params[0] = INT_TO_BOOLEAN(ctx->Const.ProfileMask); + break; default: goto invalid_enum_error; } @@ -3853,6 +3856,9 @@ _mesa_GetFloatv( GLenum pname, GLfloat *params ) case GL_CONTEXT_FLAGS: params[0] = (GLfloat)(ctx->Const.ContextFlags); break; + case GL_CONTEXT_PROFILE_MASK: + params[0] = (GLfloat)(ctx->Const.ProfileMask); + break; default: goto invalid_enum_error; } @@ -5752,6 +5758,9 @@ _mesa_GetIntegerv( GLenum pname, GLint *params ) case GL_CONTEXT_FLAGS: params[0] = ctx->Const.ContextFlags; break; + case GL_CONTEXT_PROFILE_MASK: + params[0] = ctx->Const.ProfileMask; + break; default: goto invalid_enum_error; } @@ -7652,6 +7661,9 @@ _mesa_GetInteger64v( GLenum pname, GLint64 *params ) case GL_CONTEXT_FLAGS: params[0] = (GLint64)(ctx->Const.ContextFlags); break; + case GL_CONTEXT_PROFILE_MASK: + params[0] = (GLint64)(ctx->Const.ProfileMask); + break; default: goto invalid_enum_error; } |