diff options
author | James Ross-Gowan <rossy@jrg.systems> | 2018-02-12 21:08:17 +1100 |
---|---|---|
committer | James Ross-Gowan <rossy@jrg.systems> | 2018-02-13 21:25:15 +1100 |
commit | 1b80e124dbec1c4bb80b8ce4aaeb84ff841f9b6d (patch) | |
tree | 15afbd5e96cd783ee51bc55607d1c17da4fe76fc /video/out/opengl | |
parent | 7d2228c6738b8793bc616c9436cdc7a1cf149a79 (diff) | |
download | mpv-1b80e124dbec1c4bb80b8ce4aaeb84ff841f9b6d.tar.bz2 mpv-1b80e124dbec1c4bb80b8ce4aaeb84ff841f9b6d.tar.xz |
vo_gpu: d3d11: implement tex_download()
This allows the new GPU screenshot functionality introduced in
9f595f3a80ee to work with the D3D11 backend. It replaces the old window
screenshot functionality, which was shared between D3D11 and ANGLE. The
old code can be removed, since it's not needed by ANGLE anymore either.
Diffstat (limited to 'video/out/opengl')
-rw-r--r-- | video/out/opengl/context_angle.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/video/out/opengl/context_angle.c b/video/out/opengl/context_angle.c index 986a50362b..6d45e29496 100644 --- a/video/out/opengl/context_angle.c +++ b/video/out/opengl/context_angle.c @@ -525,17 +525,6 @@ static int angle_color_depth(struct ra_swapchain *sw) return 8; } -static struct mp_image *angle_screenshot(struct ra_swapchain *sw) -{ - struct priv *p = sw->ctx->priv; - if (p->dxgi_swapchain) { - struct mp_image *img = mp_d3d11_screenshot(p->dxgi_swapchain); - if (img) - return img; - } - return ra_gl_ctx_screenshot(sw); -} - static bool angle_submit_frame(struct ra_swapchain *sw, const struct vo_frame *frame) { @@ -611,7 +600,6 @@ static bool angle_init(struct ra_ctx *ctx) // Custom swapchain impl for the D3D11 swapchain-based surface static const struct ra_swapchain_fns dxgi_swapchain_fns = { .color_depth = angle_color_depth, - .screenshot = angle_screenshot, .submit_frame = angle_submit_frame, }; struct ra_gl_ctx_params params = { |