Adding depth buffer to texture mgr