Switch from immediate mode drawing to a VertexArray.