Fix extra read-only resources displayed in D3D12 Texture Viewer

This commit is contained in:
Dylan Barrie
2021-01-07 12:10:01 -08:00
committed by Baldur Karlsson
parent bb45e67e30
commit 5eec88fdc7
+1 -1
View File
@@ -1189,7 +1189,7 @@ rdcarray<BoundResourceArray> PipeState::GetReadOnlyResources(ShaderStage stage,
for(size_t j = 0; j < element.views.size(); ++j)
{
const D3D12Pipe::View &view = element.views[j];
if(view.bind >= start && view.bind <= end)
if(view.bind >= start && view.bind < end)
{
val.push_back(BoundResource());
BoundResource &b = val.back();