Files
UnrealEngineUWP/Engine/Source/Runtime/Landscape
chris tchou e1545c7914 Fix for crash running PIE with some landscapes
This reverts the previous change that moved the render map allocation from CreateResources to Register -- here we move it back to CreateResources.  This fixes the bug because it is allocating other arrays based on the total allocation size, after CreateResources and before Register, so if you don't allocate in CreateResources those arrays can be incorrect size.

To fix the original bug that the allocation move was supposed to fix, I instead require that the number of Sections Created and Sections Registered are equal before running compaction, which guarantees that compaction will never remove entries that could still be in use.

#rb jonathan.bard

[CL 27903088 by chris tchou in ue5-main branch]
2023-09-14 20:15:18 -04:00
..
2023-07-27 22:53:25 -04:00