make gl.LineWidth & gl.PointSize safe against invalid input