[vlc-commits] d3d11_fmt: fix the texture table when rendering NV12/P010 directly
Steve Lhomme
git at videolan.org
Thu Sep 5 09:04:43 CEST 2019
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Sep 5 09:01:59 2019 +0200| [0b5ada5a5b8ecfd55b68bdbc8f5b9fe3f25ec8da] | committer: Steve Lhomme
d3d11_fmt: fix the texture table when rendering NV12/P010 directly
We need 2 resource view to display them but only the first texture of the array
was set.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0b5ada5a5b8ecfd55b68bdbc8f5b9fe3f25ec8da
---
modules/video_chroma/d3d11_fmt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/video_chroma/d3d11_fmt.c b/modules/video_chroma/d3d11_fmt.c
index 7c038d115b..f2157e94d4 100644
--- a/modules/video_chroma/d3d11_fmt.c
+++ b/modules/video_chroma/d3d11_fmt.c
@@ -641,7 +641,7 @@ int AllocateTextures( vlc_object_t *obj, d3d11_device_t *d3d_dev,
assert(cfg->resourceFormat[2] == cfg->resourceFormat[0]);
} else {
- plane_count = 1;
+ plane_count = __MAX(1, p_chroma_desc->plane_count);
texDesc.Format = cfg->formatTexture;
texDesc.Height = fmt->i_height;
texDesc.Width = fmt->i_width;
More information about the vlc-commits
mailing list