Fix GLX version check.
authorgb <gb@5584edef-b1fe-4b99-b61b-dd2bab72e969>
Tue, 15 Jun 2010 12:36:16 +0000 (12:36 +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 9d38f9e..899b657 100644 (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;
     }