summaryrefslogtreecommitdiffstats
path: root/video/out
diff options
context:
space:
mode:
authoraverne <averne381@gmail.com>2022-02-04 20:50:07 +0100
committerDudemanguy <random342@airmail.cc>2023-02-28 14:13:55 +0000
commit4fbc3ad399fded863a3b8ffe554791d6a1726d36 (patch)
tree752cc46ddea25158668364b9bad3ec901e79d440 /video/out
parent0426f4b1074d91298e87423cf982ed7a9ce2b743 (diff)
downloadmpv-4fbc3ad399fded863a3b8ffe554791d6a1726d36.tar.bz2
mpv-4fbc3ad399fded863a3b8ffe554791d6a1726d36.tar.xz
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.
Diffstat (limited to 'video/out')
-rw-r--r--video/out/gpu/video.c1
1 files changed, 1 insertions, 0 deletions
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,
};