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