vlc/vlc-3.0 | branch: master | Steve Lhomme | Mon Feb 12
14:23:44 2018 +0100| [5b7a19d255cac28bd3d0f68624191d25212d] | committer:
Hugo Beauzée-Luyssen
d3d11va: fill the whole array
Even though there's no real DXGI format that uses 3 resource views.
(cherry picked from commit 7ef17556541fbaea370518ef94b03a4dd3770af7)
Signed-off-by: Hugo Beauzée-Luyssen
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=5b7a19d255cac28bd3d0f68624191d25212d
---
modules/codec/avcodec/d3d11va.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/codec/avcodec/d3d11va.c b/modules/codec/avcodec/d3d11va.c
index d38b59ad3a..ac6d6bce59 100644
--- a/modules/codec/avcodec/d3d11va.c
+++ b/modules/codec/avcodec/d3d11va.c
@@ -847,7 +847,7 @@ static int DxCreateDecoderSurfaces(vlc_va_t *va, int
codec_id,
if (texDesc.BindFlags & D3D11_BIND_SHADER_RESOURCE)
{
-ID3D11Texture2D *textures[D3D11_MAX_SHADER_VIEW] = {p_texture,
p_texture};
+ID3D11Texture2D *textures[D3D11_MAX_SHADER_VIEW] = {p_texture,
p_texture, p_texture};
AllocateShaderView(VLC_OBJECT(va), sys->d3d_dev.d3ddevice,
textureFmt, textures, surface_idx,
&sys->resourceView[surface_idx *
D3D11_MAX_SHADER_VIEW]);
}
___
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits