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>
This commit is contained in:
parent
743ccf6fa0
commit
afa3b9ccd2
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user