[GL] Missing QSettings::endGroup() can cause corruption