Fix GLX version check.

This commit is contained in:
gb 2010-06-15 12:36:16 +00:00 committed by Gwenole Beauchesne
parent e384639747
commit d1332bc2e1

View file

@ -853,7 +853,7 @@ gl_create_pixmap_object(Display *dpy, guint width, guint height)
return NULL;
if (!glXQueryVersion(dpy, &glx_major, &glx_minor))
return NULL;
if (glx_major < 0 || (glx_major == 1 && glx_minor < 3)) /* 1.3 */
if (glx_major < 1 || (glx_major == 1 && glx_minor < 3)) /* 1.3 */
return NULL;
gl_vtable->has_texture_from_pixmap = TRUE;
}