[PATCH v2 1/1] opengl: Avoid infinite recursion in bezier_approximate() in case of degraded curve.