Depth texture copy using glCopyTexSubImage2D is undefined behavior since you cannot bind GL_DEPTH_ATTACHMENT to glReadBuffer. Using glBlitFramebuffer as a fallback.
Depth texture copy using glCopyTexSubImage2D is undefined behavior since you cannot bind GL_DEPTH_ATTACHMENT to glReadBuffer. Using glBlitFramebuffer as a fallback.