This is a solution to avoid redrawing the depth buffer for each Zoom with `Auto Depth`. The solution is to move the `ED_view3d_depth_override` function out of `ED_view3d_autodist` and only call `ED_view3d_depth_override` if the depth buffer is not used by any current engine. Pull Request: https://projects.blender.org/blender/blender/pulls/113026