From 3e351a41e24522f5a2d979809e84106cbfbbb480 Mon Sep 17 00:00:00 2001 From: averne Date: Fri, 4 Feb 2022 21:26:00 +0100 Subject: 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. --- video/filter/vf_gpu.c | 1 + 1 file changed, 1 insertion(+) 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, }; -- cgit v1.2.3