From f17246fec15963e7cc098cf7ba7263ad02877b99 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 13 Feb 2018 18:07:20 +0100 Subject: vo_gpu: remove old window screenshot glue code and GL implementation There is now a better way. Reading the font framebuffer was always a hack. The new code via VOCTRL_SCREENSHOT renders it into a FBO, which does not come with the disadvantages of reading the front buffer (like not being supported by GLES, possibly black regions due to overlapping windows on some systems). For now keep VOCTRL_SCREENSHOT_WIN on the VO level, because there are still some lesser VOs and backends that use it. --- video/out/gpu/context.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'video/out/gpu') diff --git a/video/out/gpu/context.h b/video/out/gpu/context.h index 78c0441cdf..a2fcb3711a 100644 --- a/video/out/gpu/context.h +++ b/video/out/gpu/context.h @@ -69,9 +69,6 @@ struct ra_swapchain_fns { // Gets the current framebuffer depth in bits (0 if unknown). Optional. int (*color_depth)(struct ra_swapchain *sw); - // Retrieves a screenshot of the framebuffer. Optional. - struct mp_image *(*screenshot)(struct ra_swapchain *sw); - // Called when rendering starts. Returns NULL on failure. This must be // followed by submit_frame, to submit the rendered frame. This function // can also fail sporadically, and such errors should be ignored unless -- cgit v1.2.3