[Closed] UpdateResourceImmediate(bool bClearRenderTarget=true) does not respect the bClearRenderTarget
So I am trying to use a
Alright, no big deal then, I just added a
The question has been closed Jul 25 '16 at 03:57 PM by AndrewHurley for the following reason:
The question is answered, right answer was accepted
Hi Damir, Sorry for the delay. CopyToResolveTarget doesn't really have the capability to clear anything. It could overwrite the target texture if the source and target were different, but from the looks of FTextureRenderTarget2DResource::InitDynamicRHI they should be the same.
Can you confirm that in the CopyToResolveTarget call in question the source/dest are the same? If they are then the problem is elsewhere. Some other rogue clear or draw coming in before or later.
Are you specifically seeing it cleared to green? A breakpoint in RHIClear or SetRenderTargetsAndClear around the problem area should help narrow it down.
answered Jul 25 '16 at 03:56 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here