Fix window resize breaking the depth buffer