Drop the GLX 1.3 requirement.
authorgb <gb@5584edef-b1fe-4b99-b61b-dd2bab72e969>
Thu, 1 Jul 2010 11:41:23 +0000 (11:41 +0000)
committerGwenole Beauchesne <gbeauchesne@splitted-desktop.com>
Mon, 20 Sep 2010 10:55:47 +0000 (12:55 +0200)
gst-libs/gst/vaapi/gstvaapiutils_glx.c

index dff8780..b1d8dcf 100644 (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;
     }