Skip to content

Commit 1d15686

Browse files
committed
hwdec_d3d11egl: fix EGL_EXT_device_query availability check
After ANGLE commit 56663dbfa780 EGL_EXT_device_query is listed in the client extension string instead of the display one. The display string check always failed, silently disabling native d3d11va interop. This fixes `hwdec` with `gpu-context=angle`.
1 parent 55146ec commit 1d15686

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

video/out/opengl/hwdec_d3d11egl.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,13 @@ static int init(struct ra_hwdec *hw)
101101
GL *gl = ra_gl_get(hw->ra_ctx->ra);
102102

103103
const char *exts = eglQueryString(egl_display, EGL_EXTENSIONS);
104+
const char *client_exts = eglQueryString(EGL_NO_DISPLAY, EGL_EXTENSIONS);
104105
if (!gl_check_extension(exts, "EGL_ANGLE_d3d_share_handle_client_buffer") ||
105106
!gl_check_extension(exts, "EGL_ANGLE_stream_producer_d3d_texture") ||
106107
!(gl_check_extension(gl->extensions, "GL_OES_EGL_image_external_essl3") ||
107108
gl->es == 200) ||
108-
!gl_check_extension(exts, "EGL_EXT_device_query") ||
109+
!(gl_check_extension(exts, "EGL_EXT_device_query") ||
110+
gl_check_extension(client_exts, "EGL_EXT_device_query")) ||
109111
!(gl->mpgl_caps & MPGL_CAP_TEX_RG))
110112
return -1;
111113

0 commit comments

Comments
 (0)