Copy the points if not sorted.
Throw exception if not enough points.
Removed two uniforms.

SpriteBatch didn't have them.
Better error message.
Merge branch 'origin/master'