From 4fbc3ad399fded863a3b8ffe554791d6a1726d36 Mon Sep 17 00:00:00 2001 From: averne Date: Fri, 4 Feb 2022 20:50:07 +0100 Subject: video: initialize depth=1 on screenshot textures According to internal documentation, 2D textures should have d=1. This fixes the correctness of the API usage, not any bug. --- video/out/gpu/video.c | 1 + 1 file changed, 1 insertion(+) (limited to 'video/out') diff --git a/video/out/gpu/video.c b/video/out/gpu/video.c index 678a89a436..3f789b6046 100644 --- a/video/out/gpu/video.c +++ b/video/out/gpu/video.c @@ -3476,6 +3476,7 @@ void gl_video_screenshot(struct gl_video *p, struct vo_frame *frame, .downloadable = true, .w = p->osd_rect.w, .h = p->osd_rect.h, + .d = 1, .render_dst = true, }; -- cgit v1.2.3