Sorry this needs more work I will send another version.
On 02/05/18 16:54, Timothy Arceri wrote:
---
src/mesa/drivers/dri/common/dri_util.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/mesa/drivers/dri/common/dri_util.c
b/src/mesa/drivers/dri/common/dri_util.c
index 7cb6248b130..b6bc5361308 100644
--- a/src/mesa/drivers/dri/common/dri_util.c
+++ b/src/mesa/drivers/dri/common/dri_util.c
@@ -389,10 +389,9 @@ 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))) {
+ if (mesa_api == API_OPENGL_COMPAT &&
+ (ctx_config.major_version * 10 + ctx_config.minor_version) >
+ screen->max_gl_compat_version) {
*error = __DRI_CTX_ERROR_BAD_API;
return NULL;
}
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev