diff options
author | wm4 <wm4@nowhere> | 2016-05-19 10:43:57 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-05-19 10:43:57 +0200 |
commit | b46eaa3b439f0db4bf4abffaa343497355f25224 (patch) | |
tree | f01244eaeeb85d63d8fab75d15186638db279d5b /video/out/opengl/hwdec_d3d11egl.c | |
parent | 5f7bd411fb1ccf0403a617fa5d44de2ba583162d (diff) | |
download | mpv-b46eaa3b439f0db4bf4abffaa343497355f25224.tar.bz2 mpv-b46eaa3b439f0db4bf4abffaa343497355f25224.tar.xz |
vo_opengl: d3d11egl: enable direct nv12 sampling on ES 3.x
ANGLE was missing texture() overloads in the shader compiler for
GL_TEXTURE_EXTERNAL_OES textures. Support has been added upstream,
so we can use it now.
Diffstat (limited to 'video/out/opengl/hwdec_d3d11egl.c')
-rw-r--r-- | video/out/opengl/hwdec_d3d11egl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/video/out/opengl/hwdec_d3d11egl.c b/video/out/opengl/hwdec_d3d11egl.c index bd4c050ac3..6d34e6905a 100644 --- a/video/out/opengl/hwdec_d3d11egl.c +++ b/video/out/opengl/hwdec_d3d11egl.c @@ -172,10 +172,10 @@ static int create(struct gl_hwdec *hw) p->egl_display = egl_display; // Optional EGLStream stuff for working without video processor. - // Note that as long as GL_OES_EGL_image_external_essl3 is not available, - // this won't work in ES 3.x mode due to missing GLSL mechanisms. if (strstr(exts, "EGL_ANGLE_stream_producer_d3d_texture_nv12") && - use_native_device && hw->gl->es == 200) + use_native_device && + (strstr(hw->gl->extensions, "GL_OES_EGL_image_external_essl3") || + hw->gl->es == 200)) { MP_VERBOSE(hw, "Loading EGL_ANGLE_stream_producer_d3d_texture_nv12\n"); |