Only copy the depth buffer if the framebuffer size matches.