Force initializeGL before any curve gui to be created.