mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 17:40:39 +00:00
Defensive code fix for RT auditing after device lost
This commit is contained in:
@@ -2151,7 +2151,7 @@ void D3D12ResourceManager::Apply_InitialState(ID3D12DeviceChild *live, D3D12Init
|
||||
|
||||
uint64_t *curSize = (uint64_t *)GetRTManager()->PostbuildReadbackBuffer->Map();
|
||||
|
||||
if(*curSize > as->Size())
|
||||
if(curSize && *curSize > as->Size())
|
||||
{
|
||||
RDCERR("BLAS built larger than recorded size - overlap checks will be incorrect");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user