Fix HeightmapTessellator sample code.

This also fixes bug #2307.