mesa: fix error handling for glEvalMesh1/2D