From 1b80e124dbec1c4bb80b8ce4aaeb84ff841f9b6d Mon Sep 17 00:00:00 2001 From: James Ross-Gowan Date: Mon, 12 Feb 2018 21:08:17 +1100 Subject: 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. --- video/out/opengl/context_angle.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'video/out/opengl') 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 = { -- cgit v1.2.3