diff options
author | Jordan Justen <[email protected]> | 2013-02-20 00:14:13 -0800 |
---|---|---|
committer | Jordan Justen <[email protected]> | 2013-02-28 21:51:00 -0800 |
commit | 782d4f0f3c4a69335bf826e10031ad8a0847e496 (patch) | |
tree | a0120aa2e4dc8e81d1f39ad2b85d1b69987b7d23 | |
parent | fde59a27fb981e9d05773891a453b2b142f85871 (diff) |
intel: Enable __DRI_API_OPENGL_CORE api with dri2 contexts
Without this set, dri_util.c:dri2CreateContextAttribs
will reject requests to create a context with
__DRI_API_OPENGL_CORE.
This prevents a 3.2 core profile context from being created
even when MESA_GL_OVERRIDE_VERSION=3.2 is used.
Signed-off-by: Jordan Justen <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_screen.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_screen.c b/src/mesa/drivers/dri/intel/intel_screen.c index 78768e54513..ba321bd0497 100644 --- a/src/mesa/drivers/dri/intel/intel_screen.c +++ b/src/mesa/drivers/dri/intel/intel_screen.c @@ -1307,6 +1307,8 @@ __DRIconfig **intelInitScreen2(__DRIscreen *psp) set_max_gl_versions(intelScreen); psp->api_mask = (1 << __DRI_API_OPENGL); + if (intelScreen->max_gl_core_version > 0) + psp->api_mask |= (1 << __DRI_API_OPENGL_CORE); if (intelScreen->max_gl_es1_version > 0) psp->api_mask |= (1 << __DRI_API_GLES); if (intelScreen->max_gl_es2_version > 0) |