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
@@ -150,8 +150,7 @@ namespace AZ
if (m_deviceBufferNeedsUpdate)
{
[[maybe_unused]] bool success = m_decalBufferHandler.UpdateBuffer(m_decalData.GetDataVector());
AZ_Error(FeatureProcessorName, success, "Unable to update buffer during Simulate().");
m_decalBufferHandler.UpdateBuffer(m_decalData.GetDataVector());
m_deviceBufferNeedsUpdate = false;
}
}