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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user