mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-08 06:53:41 +00:00
Make sure to bounds check static instanced vertex data for debugging
This commit is contained in:
1 file changed
+5
-2
@@ -2259,8 +2259,11 @@ ShaderDebugTrace D3D11Replay::DebugVertex(uint32_t eventId, uint32_t vertid, uin
|
||||
{
|
||||
if(el->InstanceDataStepRate == 0 || el->InstanceDataStepRate >= draw->numInstances)
|
||||
{
|
||||
srcData = &staticData[el->InputSlot][el->AlignedByteOffset];
|
||||
dataSize = staticData[el->InputSlot].size() - el->AlignedByteOffset;
|
||||
if(staticData[el->InputSlot].size() >= el->AlignedByteOffset)
|
||||
{
|
||||
srcData = &staticData[el->InputSlot][el->AlignedByteOffset];
|
||||
dataSize = staticData[el->InputSlot].size() - el->AlignedByteOffset;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user