Merge branch 'that-one-issue-sophie-keeps-nagging-about' into 'master'

Don't throw away user-provided shadow map resolutions

Closes #7891

See merge request OpenMW/openmw!3965
fix-osga-rotate-wildly
psi29a 9 months ago
commit 82bc6674dc

@ -246,6 +246,11 @@ bool Launcher::SettingsPage::loadSettings()
int shadowResIndex = shadowResolutionComboBox->findText(QString::number(shadowRes));
if (shadowResIndex != -1)
shadowResolutionComboBox->setCurrentIndex(shadowResIndex);
else
{
shadowResolutionComboBox->addItem(QString::number(shadowRes));
shadowResolutionComboBox->setCurrentIndex(shadowResolutionComboBox->count() - 1);
}
connect(shadowDistanceCheckBox, &QCheckBox::toggled, this, &SettingsPage::slotShadowDistLimitToggled);

Loading…
Cancel
Save