mirror of
https://github.com/brl/mutter.git
synced 2024-11-27 02:20:43 -05:00
backend-glx: Fix glXQueryVersion test
This fixes some backwards logic for asserting that we have a GLX major version == 1 and a minor version >= 2. (NB: Although we technically depend on GLX 1.3 features, we still have to support drivers that report GLX 1.2 because there are a lot of mesa drivers out there incorrectly report GLX 1.2 even though they export extensions that depend on GLX 1.3)
This commit is contained in:
parent
ce1bb3d858
commit
1899dbdc27
@ -154,7 +154,7 @@ clutter_backend_glx_post_parse (ClutterBackend *backend,
|
|||||||
* time Mesa has exported a hybrid GLX, exporting extensions specified
|
* time Mesa has exported a hybrid GLX, exporting extensions specified
|
||||||
* to require GLX 1.3, but still reporting 1.2 via glXQueryVersion. */
|
* to require GLX 1.3, but still reporting 1.2 via glXQueryVersion. */
|
||||||
if (!glXQueryVersion (backend_x11->xdpy, &glx_major, &glx_minor)
|
if (!glXQueryVersion (backend_x11->xdpy, &glx_major, &glx_minor)
|
||||||
|| !(glx_major > 1 || glx_minor > 2))
|
|| !(glx_major == 1 && glx_minor >= 2))
|
||||||
{
|
{
|
||||||
g_set_error (error, CLUTTER_INIT_ERROR,
|
g_set_error (error, CLUTTER_INIT_ERROR,
|
||||||
CLUTTER_INIT_ERROR_BACKEND,
|
CLUTTER_INIT_ERROR_BACKEND,
|
||||||
|
Loading…
Reference in New Issue
Block a user