[Mesa-dev] [PATCH 1/2] mesa: set CORE profile by default
nobled
nobled at dreamwidth.org
Fri Jul 27 09:19:06 PDT 2012
a) Per the OpenGL 3.2 spec, this is the default value
unless the user overrides it at context creation;
b) The client can't query this state until Mesa exposes
OpenGL 3.2 anyway, so it doesn't really matter yet.
---
src/mesa/main/context.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index 243053e..18a9ac8 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -661,8 +661,8 @@ _mesa_init_constants(struct gl_context *ctx)
ctx->Const.MaxUniformBlockSize = 16384;
ctx->Const.UniformBufferOffsetAlignment = 1;
- /* GL 3.2: hard-coded for now: */
- ctx->Const.ProfileMask = GL_CONTEXT_COMPATIBILITY_PROFILE_BIT;
+ /* GL 3.2: per GLX_ARB_create_context_profile, the default is 'core'. */
+ ctx->Const.ProfileMask = GL_CONTEXT_CORE_PROFILE_BIT;
/** GL_EXT_gpu_shader4 */
ctx->Const.MinProgramTexelOffset = -8;
--
1.7.9.5
More information about the mesa-dev
mailing list