LYN-2772 Atom: Adding White Box Component to an Entity silently crashes the Editor

Fixed a buffer creation issue with white box mesh.
This commit is contained in:
qingtao
2021-04-21 11:30:24 -07:00
parent 743d6a511a
commit 99e91e3e80
@@ -105,7 +105,7 @@ namespace WhiteBox
// create the buffer with the specified data
AZ::RPI::BufferAssetCreator bufferAssetCreator;
bufferAssetCreator.Begin(AZ::Uuid::CreateRandom());
bufferAssetCreator.SetUseCommonPool(AZ::RPI::CommonBufferPoolType::DynamicInputAssembly);
bufferAssetCreator.SetUseCommonPool(AZ::RPI::CommonBufferPoolType::StaticInputAssembly);
bufferAssetCreator.SetBuffer(data.data(), bufferDescriptor.m_byteCount, bufferDescriptor);
bufferAssetCreator.SetBufferViewDescriptor(m_bufferViewDescriptor);