The current problem is that the CDF is not taking into account PLATFORM_SUPPORTS_RENDERTARGET_WRITE_MASK and was only applying the filter to the UI rendertarget.
If the fix was applied inside FSlatePostProcessor::ColorDeficiency, we'd have to add support for PLATFORM_SUPPORTS_RENDERTARGET_WRITE_MASK, call FRenderTargetWriteMask::Decode, and add additional copies in order to apply the filter to both the HDR and SDR targets.
Since we apply the color deficiency filter at the end of FSlateRHIRenderingPolicy::DrawElements, we can apply the CDF inside the composition pass in HDR instead. We need to be careful to apply it to the whole screen now instead of relying on CompositeUIMask, but it's still cheaper and simpler than doing all the copies / processing I mentionned above
#preflight 633483c53041fbb5662179d5 6334aaafb946208fc1c009d8 6334aad31b5c12202432c6ba
#rb eric.renaudhoude
#jira UE-165414
[CL 22260598 by benjamin rouveyrol in ue5-main branch]