[DF-3789] Fixed main framebuffer depth deletion