diff --git a/gst-libs/gst/vaapi/gstvaapiutils_glx.c b/gst-libs/gst/vaapi/gstvaapiutils_glx.c index 9d38f9e79c..899b657550 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; }