[BUG] "Use custom depth as mask" bug?

There’s a solution here:
In the viewport click Show>Use Defaults