fixed opengl context issue when accesing in the create project thread