fix some dangling dx resources that needed to be disposed in terrain.cs