summaryrefslogtreecommitdiffstats
path: root/video/out/vulkan/context.c
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/vulkan/context.c
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/vulkan/context.c')
-rw-r--r--video/out/vulkan/context.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/video/out/vulkan/context.c b/video/out/vulkan/context.c
index 21ad5c30c7..cbe0911385 100644
--- a/video/out/vulkan/context.c
+++ b/video/out/vulkan/context.c
@@ -565,7 +565,6 @@ static void swap_buffers(struct ra_swapchain *sw)
}
static const struct ra_swapchain_fns vulkan_swapchain = {
- // .screenshot is not currently supported
.color_depth = color_depth,
.start_frame = start_frame,
.submit_frame = submit_frame,