diff options
author | Matt Turner <[email protected]> | 2013-07-08 16:07:36 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2013-07-09 14:19:22 -0700 |
commit | 80bc14370a4db876ababc13404a93526c2b14de7 (patch) | |
tree | 23c1de3b6b1e230304fdeb8d187784220c455bec /src | |
parent | 8c9a54e7bcfc80295ad77097910d35958dfd3644 (diff) |
mesa: Set ProfileMask properly for core profile.
Fixes MESA_GL_VERSION_OVERRIDE=3.2 egl-create-context-verify-gl-flavor.
Reviewed-by: Jordan Justen <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/main/context.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index 5ad04cc9988..d687fb7c0f8 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -636,8 +636,10 @@ _mesa_init_constants(struct gl_context *ctx) ctx->Const.MaxTransformFeedbackInterleavedComponents = 4 * MAX_FEEDBACK_ATTRIBS; ctx->Const.MaxVertexStreams = 1; - /* GL 3.2: hard-coded for now: */ - ctx->Const.ProfileMask = GL_CONTEXT_COMPATIBILITY_PROFILE_BIT; + /* GL 3.2 */ + ctx->Const.ProfileMask = ctx->API == API_OPENGL_CORE + ? GL_CONTEXT_CORE_PROFILE_BIT + : GL_CONTEXT_COMPATIBILITY_PROFILE_BIT; /** GL_EXT_gpu_shader4 */ ctx->Const.MinProgramTexelOffset = -8; |