mirror of
https://github.com/mpv-player/mpv
synced 2025-01-12 18:02:36 +00: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:
parent
0426f4b107
commit
4fbc3ad399
@ -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,
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user