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/video.c | |
parent | b0d3c2ede7591ed5a0f4183b815573179a00c1fd (diff) | |
download | mpv-4e5f1ec00ec917d0e72941683efcdc7cc757d339.tar.bz2 mpv-4e5f1ec00ec917d0e72941683efcdc7cc757d339.tar.xz |
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/video.c')
-rw-r--r-- | video/out/opengl/video.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/video/out/opengl/video.c b/video/out/opengl/video.c index cb8da859c8..90c511290f 100644 --- a/video/out/opengl/video.c +++ b/video/out/opengl/video.c @@ -784,6 +784,9 @@ static void init_video(struct gl_video *p) if (p->hwdec->driver->reinit(p->hwdec, &p->image_params) < 0) MP_ERR(p, "Initializing texture for hardware decoding failed.\n"); init_image_desc(p, p->image_params.imgfmt); + const char **exts = p->hwdec->glsl_extensions; + for (int n = 0; exts && exts[n]; n++) + gl_sc_enable_extension(p->sc, (char *)exts[n]); p->hwdec_active = true; } else { init_format(p, p->image_params.imgfmt, false); |