Drop the GLX 1.3 requirement.

This commit is contained in:
gb 2010-07-01 11:41:23 +00:00 committed by Gwenole Beauchesne
parent 982a06b1c7
commit 8ee1ffa857

View file

@ -852,17 +852,11 @@ gl_create_pixmap_object(Display *dpy, guint width, guint height)
/* XXX: this won't work for different displays */
if (!gl_vtable->has_texture_from_pixmap) {
const char *glx_extensions;
int glx_major, glx_minor;
glx_extensions = glXQueryExtensionsString(dpy, screen);
const char *glx_extensions = glXQueryExtensionsString(dpy, screen);
if (!glx_extensions)
return NULL;
if (!find_string("GLX_EXT_texture_from_pixmap", glx_extensions, " "))
return NULL;
if (!glXQueryVersion(dpy, &glx_major, &glx_minor))
return NULL;
if (glx_major < 1 || (glx_major == 1 && glx_minor < 3)) /* 1.3 */
return NULL;
gl_vtable->has_texture_from_pixmap = TRUE;
}