summaryrefslogtreecommitdiffstats
path: root/video/out/gl_common.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-07-03 16:37:01 +0200
committerwm4 <wm4@nowhere>2015-07-03 16:38:12 +0200
commit561416597e33e2c314f0d69433e955c059ee24eb (patch)
treedcb24d4a797f6c737475cab79c44b347cb4a5b12 /video/out/gl_common.c
parentb85321d0573ba581694d2e6be1effafee74c11d1 (diff)
downloadmpv-561416597e33e2c314f0d69433e955c059ee24eb.tar.bz2
mpv-561416597e33e2c314f0d69433e955c059ee24eb.tar.xz
client API, dxva2: add a workaround for OpenGL fullscreen issues
This is basically a hack for drivers which prevent the mpv DXVA2 decoder glue from working if OpenGL is in fullscreen mode. Since it doesn't add any "hard" new API to the client API, some of the code would be required for a true zero-copy hw decoding pipeline, and sine it isn't too much code after all, this is probably acceptable.
Diffstat (limited to 'video/out/gl_common.c')
-rw-r--r--video/out/gl_common.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/video/out/gl_common.c b/video/out/gl_common.c
index 5560fe07e0..c127f16fa3 100644
--- a/video/out/gl_common.c
+++ b/video/out/gl_common.c
@@ -306,6 +306,15 @@ static const struct gl_functions gl_functions[] = {
{0}
},
},
+ // These don't exist - they are for the sake of mpv internals, and libmpv
+ // interaction (see libmpv/opengl_cb.h).
+ {
+ .extension = "GL_MP_D3D_interfaces",
+ .functions = (const struct gl_function[]) {
+ DEF_FN(MPGetD3DInterface),
+ {0}
+ },
+ },
};
#undef FN_OFFS