diff options
author | averne <averne381@gmail.com> | 2022-02-04 21:26:00 +0100 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-02-28 14:13:55 +0000 |
commit | 3e351a41e24522f5a2d979809e84106cbfbbb480 (patch) | |
tree | 306459f094fdcecd0aa2fabca3172c17f8fbc1e6 | |
parent | 4fbc3ad399fded863a3b8ffe554791d6a1726d36 (diff) | |
download | mpv-3e351a41e24522f5a2d979809e84106cbfbbb480.tar.bz2 mpv-3e351a41e24522f5a2d979809e84106cbfbbb480.tar.xz |
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.
-rw-r--r-- | video/filter/vf_gpu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/video/filter/vf_gpu.c b/video/filter/vf_gpu.c index 463d626e7d..fb11941379 100644 --- a/video/filter/vf_gpu.c +++ b/video/filter/vf_gpu.c @@ -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, }; |