mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-08 16:50:44 +00:00
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:
@@ -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())
|
||||
)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user