Fixes asserts related to buffer allocation using null rhi (#3367)

Fixes GPU crashes when releasing Indirect draw and query related dx12 objects
Fixes imgui profiler related to viewing buffer allocations

Signed-off-by: moudgils <moudgils@amazon.com>
This commit is contained in:
moudgils
2021-08-20 13:31:35 -07:00
committed by GitHub
parent aa68122002
commit b2b6886338
13 changed files with 32 additions and 18 deletions
@@ -136,6 +136,7 @@ namespace AZ
return false;
}
bufferPool->SetName(Name(AZStd::string::format("RPI::CommonBufferPool_%i", static_cast<uint32_t>(poolType))));
RHI::ResultCode resultCode = bufferPool->Init(*device, bufferPoolDesc);
if (resultCode != RHI::ResultCode::Success)
{