Made the 3D buffer update run after the 2D buffer update.