summaryrefslogtreecommitdiff
path: root/glx/glxdri2.c
diff options
context:
space:
mode:
authorBartosz Brachaczek <b.brachaczek@gmail.com>2012-07-06 02:52:40 +0200
committerDave Airlie <airlied@gmail.com>2012-07-13 11:25:04 +1000
commitafa3b9ccd27ff9c58f536cb3b727e85feb6a6f6a (patch)
tree741cbb0f1443d1573a718f3fefe7743c3c365430 /glx/glxdri2.c
parent743ccf6fa0a9a4579d6de6d10e2e6040640772d9 (diff)
glx: Fix checking GL version
Signed-off-by: Bartosz Brachaczek <b.brachaczek@gmail.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Signed-off-by: Dave Airlie <airlied@gmail.com>
Diffstat (limited to 'glx/glxdri2.c')
-rw-r--r--glx/glxdri2.c2
1 files changed, 1 insertions, 1 deletions
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;
}