mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-22 12:01:10 +00:00
Defensive code fix for RT auditing after device lost
This commit is contained in:
1 parent
7734a36228
commit
52cb002dd7
1 file changed
+1
-1
@@ -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