mirror of
https://github.com/mpv-player/mpv
synced 2024-09-09 01:16:56 +02:00
vo_opengl: vaapi: don't expect EGL exts. to be in common ext. string
This commit is contained in:
parent
135a7217b9
commit
4c25f49236
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user