Commit 92c069be authored by Steve Lhomme's avatar Steve Lhomme

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

parent 7ef17556
......@@ -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