Some real reason to setOpenGLView two times if !glview?

commentind that line works ok in linux

    if(!glview) {
        glview = GLViewImpl::create("Cpp Empty Test");
  //      director->setOpenGLView(glview);
    }

director->setOpenGLView(glview);