Always bounds check number of descriptors even if range isn't unbounded

This commit is contained in:
baldurk
2020-10-06 10:25:37 +01:00
parent 99171cc794
commit 6e9565eb84
+1 -1
View File
@@ -1104,7 +1104,7 @@ void D3D12Replay::FillRootElements(const D3D12RenderState::RootSignature &rootSi
desc += e->offset;
desc += offset;
if(num == UINT_MAX)
if(num >= heap->GetNumDescriptors())
{
UINT availDescriptors = heap->GetNumDescriptors() - offset - UINT(e->offset);