From 5ad73ccbe9e9a736e7545e99879bf7acf9cb01f9 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 6 Jun 2020 12:26:37 +0200 Subject: vo_gpu: fix display corruption with window screenshots The "screenshot window" command (ctrl+s by default) somehow broke video colors with --gpu-api=vulkan --profile=gpu-hq when playback was paused. I don't know the cause, but the rest of the code seems to imply gl_video_reset_surfaces() needs to be called manually to flush some caches, and it fixes the issue, so I assume there's no great mystery here. --- video/out/gpu/video.c | 1 + 1 file changed, 1 insertion(+) diff --git a/video/out/gpu/video.c b/video/out/gpu/video.c index dbe562ca8f..74ff85f210 100644 --- a/video/out/gpu/video.c +++ b/video/out/gpu/video.c @@ -3458,6 +3458,7 @@ done: talloc_free(nframe); ra_tex_free(p->ra, &target); gl_video_resize(p, &old_src, &old_dst, &old_osd); + gl_video_reset_surfaces(p); if (!ok) TA_FREEP(&res); args->res = res; -- cgit v1.2.3