public virtual void DetachDepthBuffer() { if (depthBuffer == null) return; depthBuffer.NotifyRenderTargetDetached(this); depthBuffer = null; }