Commit 0b98f9b2 authored by Steve Lhomme's avatar Steve Lhomme Committed by Hugo Beauzée-Luyssen

d3d11_fmt: make sure we don't try to use an array size bigger than what we have

(cherry picked from commit 92c069be)
Signed-off-by: default avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
parent 6bc59720
......@@ -105,6 +105,7 @@ int AllocateShaderView(vlc_object_t *obj, ID3D11Device *d3ddevice,
resviewDesc.Texture2DArray.MipLevels = -1;
resviewDesc.Texture2DArray.ArraySize = 1;
resviewDesc.Texture2DArray.FirstArraySlice = slice_index;
assert(slice_index < texDesc.ArraySize);
}
for (i=0; i<D3D11_MAX_SHADER_VIEW; i++)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment