1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-25 16:33:02 +00:00

vf_gpu: initialize depth=1 on target 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 21:26:00 +01:00 committed by Dudemanguy
parent 4fbc3ad399
commit 3e351a41e2

View File

@ -196,6 +196,7 @@ static struct mp_image *gpu_render_frame(struct mp_filter *f, struct mp_image *i
.downloadable = true,
.w = w,
.h = h,
.d = 1,
.render_dst = true,
};