Fixed a crash when trying to play a movie via FMoviePlayerWidgetRenderer such as the intro video when loading the ShooterGame sample game.

An ensure was added to SWidget in [at]7232617 to make sure that it's PaintParent (passed in via FPaintArgs) is not the same as the widget being painted.
This means we should now pass in nullptr for the VirtualRenderWindow widget rather than a reference to itself, mirroring the change made to PreLoadSlateThreading.cpp in the same CL.

#rb Matt.Kuhlenscmidt

#ROBOMERGE-SOURCE: CL 7622938 in //UE4/Dev-Core/...
#ROBOMERGE-BOT: CORE (Dev-Core -> Main) (v372-7473910)

[CL 7622939 by paul chipchase in Main branch]
This commit is contained in:
paul chipchase
2019-07-25 04:54:23 -04:00
parent fbb49fb5ea
commit 4e0b10ab06

View File

@@ -856,7 +856,7 @@ void FMoviePlayerWidgetRenderer::DrawWindow(float DeltaTime)
int32 MaxLayerId = 0;
{
FPaintArgs PaintArgs(&VirtualRenderWindow.Get(), *HittestGrid, FVector2D::ZeroVector, FSlateApplication::Get().GetCurrentTime(), FSlateApplication::Get().GetDeltaTime());
FPaintArgs PaintArgs(nullptr, *HittestGrid, FVector2D::ZeroVector, FSlateApplication::Get().GetCurrentTime(), FSlateApplication::Get().GetDeltaTime());
// Paint the window
MaxLayerId = VirtualRenderWindow->Paint(