Skip to content

Commit

Permalink
Merge pull request #191 from YuCrazing/master
Browse files Browse the repository at this point in the history
Fixed compilation issue without RayTracing support in RHI
  • Loading branch information
Koderz authored Aug 27, 2020
2 parents 95d924c + 11a8c8c commit fd1696a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/RuntimeMeshComponent/Private/RuntimeMeshProxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,9 @@ void FRuntimeMeshProxy::ApplyMeshToSection(int32 LODIndex, int32 SectionId, FRun
FRuntimeMeshSectionProxyBuffers& Buffers = *Section.Buffers.Get();

Buffers.VertexFactory.ReleaseResource();
#if RHI_RAYTRACING
Buffers.RayTracingGeometry.ReleaseResource();
#endif
}

check(!Section.CanRender() || Section.Buffers->VertexFactory.IsInitialized());
Expand Down

0 comments on commit fd1696a

Please sign in to comment.