summaryrefslogtreecommitdiffstats
path: root/video/out/gpu
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2018-02-13 18:07:20 +0100
committerKevin Mitchell <kevmitch@gmail.com>2018-02-13 17:45:29 -0800
commitf17246fec15963e7cc098cf7ba7263ad02877b99 (patch)
tree45689c1cd1200df665969d4ea75d3dab17de1c46 /video/out/gpu
parentceca1602e9360564a780036597dfe904566611ff (diff)
downloadmpv-f17246fec15963e7cc098cf7ba7263ad02877b99.tar.bz2
mpv-f17246fec15963e7cc098cf7ba7263ad02877b99.tar.xz
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.
Diffstat (limited to 'video/out/gpu')
-rw-r--r--video/out/gpu/context.h3
1 files changed, 0 insertions, 3 deletions
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