mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-19 05:45:58 +00:00
Drop the GLX 1.3 requirement.
This commit is contained in:
parent
982a06b1c7
commit
8ee1ffa857
1 changed files with 1 additions and 7 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue