[BUG] ESceneCapturePrimitiveRenderMode::PRM_UseShowOnlyList not work in shipping version

Unreal Engine 4.20.3/ 4.21.2
I’m trying to use ESceneCapturePrimitiveRenderMode::PRM_UseShowOnlyList and it perfect work in the development build. But in the shipping build, I’m getting a black screen.