1
mirror of https://github.com/mpv-player/mpv synced 2024-07-31 16:29:58 +02:00

vo_opengl: vaapi: don't expect EGL exts. to be in common ext. string

This commit is contained in:
wm4 2016-01-22 19:54:32 +01:00
parent 135a7217b9
commit 4c25f49236

View File

@ -210,8 +210,12 @@ static int create(struct gl_hwdec *hw)
if (!eglGetCurrentDisplay())
return -1;
if (!strstr(gl->extensions, "EXT_image_dma_buf_import") ||
!strstr(gl->extensions, "EGL_KHR_image_base") ||
const char *exts = eglQueryString(eglGetCurrentDisplay(), EGL_EXTENSIONS);
if (!exts)
return -1;
if (!strstr(exts, "EXT_image_dma_buf_import") ||
!strstr(exts, "EGL_KHR_image_base") ||
!strstr(gl->extensions, "GL_OES_EGL_image") ||
!(gl->mpgl_caps & MPGL_CAP_TEX_RG))
return -1;