summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/get.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2010-04-20 20:52:56 -0600
committerBrian Paul <[email protected]>2010-04-20 20:52:56 -0600
commitbd1d35fb5d3c889b11de5a1d493f711fc091fbed (patch)
treed7fa6eb620b256d9809ee0484749cee0e5e53aee /src/mesa/main/get.c
parentd3e2f4fa18226f540ba83bde099edb67b795655c (diff)
mesa: add GL 3.2 GL_CONTEXT_PROFILE_MASK query
Diffstat (limited to 'src/mesa/main/get.c')
-rw-r--r--src/mesa/main/get.c12
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;
}