Add missing resource transition to slate

[CL 2749338 by Nick Penwarden in Main branch]
This commit is contained in:
Nick Penwarden
2015-10-31 14:30:27 -04:00
committed by Nick.Penwarden@epicgames.com
parent 799b048456
commit 15d40d9562

View File

@@ -106,6 +106,7 @@ void FSlate3DRenderer::DrawWindowToTarget_RenderThread( FRHICommandListImmediate
Info.bClearColor = true;
ensure(ColorRTV.Texture->GetClearColor() == RenderTarget->ClearColor);
RHICmdList.TransitionResource(EResourceTransitionAccess::EWritable, RTResource);
RHICmdList.SetRenderTargetsAndClear(Info);
FMatrix ProjectionMatrix = FSlateRHIRenderer::CreateProjectionMatrix( RenderTarget->SizeX, RenderTarget->SizeY );