From: gb Date: Tue, 15 Jun 2010 12:36:16 +0000 (+0000) Subject: Fix GLX version check. X-Git-Tag: 0.2.5~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d1332bc2e1d05da8eb031ba2cec27dc929882d20;p=platform%2Fupstream%2Fgstreamer-vaapi.git Fix GLX version check. --- diff --git a/gst-libs/gst/vaapi/gstvaapiutils_glx.c b/gst-libs/gst/vaapi/gstvaapiutils_glx.c index 9d38f9e..899b657 100644 --- a/gst-libs/gst/vaapi/gstvaapiutils_glx.c +++ b/gst-libs/gst/vaapi/gstvaapiutils_glx.c @@ -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; }