summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2018-05-08 10:35:40 +1000
committerTimothy Arceri <[email protected]>2018-05-09 14:24:43 +1000
commite7a7b712fe81aac96eaae267ad6cb5444f02e7f6 (patch)
tree6378aca9b3df94ff7655e50279fb340c2eb4a28c
parent4560aad780b851f855a8adc72ea34ca4eb17634a (diff)
mesa: remove hard-coded OpenGL 3.2 compat limit
Just let validate_context_version() do it instead. This fixes MESA_GL_VERSION_OVERRIDE for compat, it will also allow us to enable new compat versions on a per driver bases in future. Reviewed-by: Marek Olšák <[email protected]>
-rw-r--r--src/mesa/drivers/dri/common/dri_util.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c
index 7cb6248b130..75d124097b9 100644
--- a/src/mesa/drivers/dri/common/dri_util.c
+++ b/src/mesa/drivers/dri/common/dri_util.c
@@ -389,14 +389,6 @@ driCreateContextAttribs(__DRIscreen *screen, int api,
screen->max_gl_compat_version < 31)
mesa_api = API_OPENGL_CORE;
- if (mesa_api == API_OPENGL_COMPAT
- && ((ctx_config.major_version > 3)
- || (ctx_config.major_version == 3 &&
- ctx_config.minor_version >= 2))) {
- *error = __DRI_CTX_ERROR_BAD_API;
- return NULL;
- }
-
/* The latest version of EGL_KHR_create_context spec says:
*
* "If the EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR flag bit is set in