mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-23 06:56:40 +00:00
Fix off-by-one when searching for re-used arrays
This commit is contained in:
@@ -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++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user