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/d3d11/context.c | |
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/d3d11/context.c')
-rw-r--r-- | video/out/d3d11/context.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/video/out/d3d11/context.c b/video/out/d3d11/context.c index af664d9988..82c7d162f7 100644 --- a/video/out/d3d11/context.c +++ b/video/out/d3d11/context.c @@ -70,12 +70,6 @@ struct priv { IDXGISwapChain *swapchain; }; -static struct mp_image *d3d11_screenshot(struct ra_swapchain *sw) -{ - struct priv *p = sw->ctx->priv; - return mp_d3d11_screenshot(p->swapchain); -} - static struct ra_tex *get_backbuffer(struct ra_ctx *ctx) { struct priv *p = ctx->priv; @@ -179,7 +173,6 @@ static void d3d11_uninit(struct ra_ctx *ctx) static const struct ra_swapchain_fns d3d11_swapchain = { .color_depth = d3d11_color_depth, - .screenshot = d3d11_screenshot, .start_frame = d3d11_start_frame, .submit_frame = d3d11_submit_frame, .swap_buffers = d3d11_swap_buffers, |