[Closed] Possible Duplicate Stencil Clear
I think I may have found a duplicate stencil buffer clear call.
PostProcessDeferredDecals.cpp, around line 773:
DeferredShadingRenderer.cpp, around line 1254:
If I'm not mistaken, the PostProcessDeferredDecals clear occurs just before the DeferredShadingRenderer clear, making the earlier clear unnecessary. Does that seem correct, or am I missing something?
The question has been closed Jul 25 '16 at 05:24 PM by AndrewHurley for the following reason:
The question is answered, right answer was accepted
Hi Aaron, I think your summary is correct. The second stencil clear is redundant if we're rendering decals because the decal passes clear the stencil at the end of each pass if required anyway.
It may be that we still need to clear the stencil if we aren't rendering decals for some reason, but certainly if decals are being rendered, there's no point in clearing again.
I've raised bug UE-32759 to investigate this further.
answered Jul 25 '16 at 05:19 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here