Fix off-by-one when searching for re-used arrays

This commit is contained in:
baldurk
2022-11-17 18:22:57 +00:00
parent 1f34b0ba57
commit 153bc31a92
@@ -1158,7 +1158,7 @@ void D3D12PipelineStateViewer::setShaderState(
// only look for a new bind if we don't have one that already matches
if(bind == NULL ||
(bind->arraySize != ~0U && bind->bind + (int)bind->arraySize < shaderReg))
(bind->arraySize != ~0U && bind->bind + (int)bind->arraySize <= shaderReg))
{
for(int k = 0; k < binds.count(); k++)
{