Fix range bounds check being set up wrongly in shader debug. Refs #143

* The offset is independent of checking the index against the number
  of elements in the view. Otherwise e.g. offset=5 and numelems=1 would
  never be in bounds.
This commit is contained in:
baldurk
2015-07-25 20:12:26 +02:00
parent 8ca621a649
commit 99b7f529b6
+1 -1
View File
@@ -2255,7 +2255,7 @@ State State::GetNext(GlobalState &global, State quad[4]) const
}
if(!data ||
(!texData && offset + elemIdx >= numElems) ||
(!texData && elemIdx >= numElems) ||
(texData && texOffset >= global.uavs[resIndex].data.size())
)
{