Defensive code fix for RT auditing after device lost

This commit is contained in:
Jake Turner
2025-09-17 13:24:11 +01:00
parent 7734a36228
commit 52cb002dd7
+1 -1
View File
@@ -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");
}