Skip to content

Commit f0565da

Browse files
authored
Merge pull request #237 from AlienRenders/RMC4_UE5
Fix UE 5.1 crash on startup.
2 parents 20dce12 + a4b5df0 commit f0565da

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Source/RuntimeMeshComponent/Private/RuntimeMesh.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,7 @@ void URuntimeMesh::HandleSingleSectionUpdate(const FRuntimeMeshProxyPtr& RenderP
887887
TSharedPtr<FRuntimeMeshSectionUpdateData> UpdateData = MakeShared<FRuntimeMeshSectionUpdateData>(MoveTemp(MeshData));
888888

889889
// Push the data to the gpu from this thread if we're not on the game thread and the current RHI supports async
890-
if (GRHISupportsAsyncTextureCreation && GIsThreadedRendering && !IsInGameThread())
890+
if (GRHISupportsAsyncTextureCreation && GIsThreadedRendering && IsInRenderingThread())
891891
{
892892
UpdateData->CreateRHIBuffers<false>(Properties.UpdateFrequency == ERuntimeMeshUpdateFrequency::Frequent);
893893
}

0 commit comments

Comments
 (0)