/Engine/Source/Runtime/Slate/Public/Framework/Application/SlateApplication.h
Removes references to FViewportRHI's. This has to be done explicitly instead of using theFRenderResourcemechanism because FViewportRHI's are managed by the game thread. This is needed before destroying the RHI device.
void InvalidateAllViewports()