mirror of
https://github.com/mpv-player/mpv
synced 2025-01-24 08:33:34 +00: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