Fix UE5.1 crash: ditch FMemStack in DebugRenderSceneProxy

This commit is contained in:
Steve Streeting 2023-02-16 17:52:05 +00:00
parent d859d99af4
commit 1b52815584

View File

@ -73,7 +73,7 @@ void FStevesDebugRenderSceneProxy::GetDynamicMeshElements(const TArray<const FSc
// Parent caches these (only within this function) but let's assume that's not worth it. Will people really
// have lots of meshes with a shared colour in this single context to make it worth it?
const auto MatRenderProxy = new(FMemStack::Get()) FColoredMaterialRenderProxy(GEngine->WireframeMaterial->GetRenderProxy(), Mesh.Color);
const auto MatRenderProxy = new FColoredMaterialRenderProxy(GEngine->WireframeMaterial->GetRenderProxy(), Mesh.Color);
FDynamicMeshBuilderSettings Settings;
Settings.bWireframe = true;
Settings.bUseSelectionOutline = false;