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