diff options
author | wm4 <wm4@nowhere> | 2016-05-19 12:02:08 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-05-19 12:02:08 +0200 |
commit | 4e5f1ec00ec917d0e72941683efcdc7cc757d339 (patch) | |
tree | 88a40f71616b6dfd7fef477ec0ca4e4771405887 /video/out/opengl/hwdec_d3d11egl.c | |
parent | b0d3c2ede7591ed5a0f4183b815573179a00c1fd (diff) |
vo_opengl: d3d11egl: enable "required" GLSL extensions
ANGLE doesn't handle this very strictly. But if they change this in the
future, it shouldn't brick us.
Not quite happy with this glsl_extensions fields, but it is quite
unintrusive after all.
Diffstat (limited to 'video/out/opengl/hwdec_d3d11egl.c')
-rw-r--r-- | video/out/opengl/hwdec_d3d11egl.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/video/out/opengl/hwdec_d3d11egl.c b/video/out/opengl/hwdec_d3d11egl.c index 6d34e6905a..c257145470 100644 --- a/video/out/opengl/hwdec_d3d11egl.c +++ b/video/out/opengl/hwdec_d3d11egl.c @@ -201,6 +201,11 @@ static int create(struct gl_hwdec *hw) MP_ERR(hw, "Failed to load some EGLStream functions.\n"); goto fail; } + + static const char *es2_exts[] = {"GL_NV_EGL_stream_consumer_external", 0}; + static const char *es3_exts[] = {"GL_NV_EGL_stream_consumer_external", + "GL_OES_EGL_image_external_essl3", 0}; + hw->glsl_extensions = hw->gl->es == 200 ? es2_exts : es3_exts; } if (use_native_device) { |