From afa3b9ccd27ff9c58f536cb3b727e85feb6a6f6a Mon Sep 17 00:00:00 2001 From: Bartosz Brachaczek Date: Fri, 6 Jul 2012 02:52:40 +0200 Subject: [PATCH] glx: Fix checking GL version Signed-off-by: Bartosz Brachaczek Reviewed-by: Ian Romanick Signed-off-by: Dave Airlie --- glx/glxdri2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glx/glxdri2.c b/glx/glxdri2.c index 4e00673ac..bce1bfa4b 100644 --- a/glx/glxdri2.c +++ b/glx/glxdri2.c @@ -486,7 +486,7 @@ dri2_convert_glx_attribs(__GLXDRIscreen *screen, unsigned num_attribs, * don't support OpenGL 3.2 may fail the request for a core profile. */ if (*api == __DRI_API_OPENGL_CORE - && (*major_ver < 3 || (*major_ver < 3 && *minor_ver < 2))) { + && (*major_ver < 3 || (*major_ver == 3 && *minor_ver < 2))) { *api = __DRI_API_OPENGL; }