summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authoraverne <averne381@gmail.com>2022-02-04 21:26:00 +0100
committerDudemanguy <random342@airmail.cc>2023-02-28 14:13:55 +0000
commit3e351a41e24522f5a2d979809e84106cbfbbb480 (patch)
tree306459f094fdcecd0aa2fabca3172c17f8fbc1e6 /video
parent4fbc3ad399fded863a3b8ffe554791d6a1726d36 (diff)
downloadmpv-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.
Diffstat (limited to 'video')
-rw-r--r--video/filter/vf_gpu.c1
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,
};