0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

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.
This commit is contained in:
averne 2022-02-04 20:50:07 +01:00 committed by Dudemanguy
parent 0426f4b107
commit 4fbc3ad399

View File

@ -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,
};