CurveWidget now supports OpenGL version that does not have glVertexArrays