Having holes in a landscape and stopping the game in opengl es2 crashes the editor.
- Create a material
- Switch to masked
- Hookup Landscape Visibility Mask to Opacity
- Compile
- Create a landscape
- Apply the material to the landscape
- Add at least one hole
- Switch preview renderer to opengl es2 (mobile)
- Play the game
- Stop the game
- Crash. Able to reproduce 100% of the time. I tried it on a brand new project as well.
<SOURCE START>
831 Owner->DetachFence.BeginFence();
832 }
833 }
834
835 bool UPrimitiveComponent::IsReadyForFinishDestroy()
836 {
837 // Don't allow the primitive component to the purged until its pending scene detachments have completed.
838 return Super::IsReadyForFinishDestroy() && DetachFence.IsFenceComplete();
839 }
840
841 void UPrimitiveComponent::FinishDestroy()
842 {
843 // The detach fence has cleared so we better not be attached to the scene.
844 check(AttachmentCounter.GetValue() == 0);
845 ***** Super::FinishDestroy();
846 }
847
848 bool UPrimitiveComponent::NeedsLoadForClient() const
849 {
850 if(!IsVisible() && !IsCollisionEnabled() && !AlwaysLoadOnClient)
851 {
852 return 0;
853 }
854 else
855 {
856 return Super::NeedsLoadForClient();
857 }
858 }
859
860
<SOURCE END>