Merge pull request #204 from aws-lumberyard-dev/Atom/qingtao/LYN-2772

LYN-2772 Atom: Adding White Box Component to an Entity silently crashes the Editor
This commit is contained in:
Vicky
2021-04-21 12:54:31 -07:00
committed by GitHub
@@ -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);