Move the "Always on" option for lens flare occlusion to developer settings

This commit is contained in:
Henrik Rydgård committed 2025-04-14 22:38:25 +02:00
1 parent 52a7709fb5
commit 06a5de0972
2 files changed
+8

No files matched your search

+6
View File
@@ -337,6 +337,12 @@ void DeveloperToolsScreen::CreateGraphicsTab(UI::LinearLayout *list) {
});
}
static const char *depthRasterModes[] = { "Auto (default)", "Low", "Off", "Always on" };
PopupMultiChoice *depthRasterMode = list->Add(new PopupMultiChoice(&g_Config.iDepthRasterMode, gr->T("Lens flare occlusion"), depthRasterModes, 0, ARRAY_SIZE(depthRasterModes), I18NCat::GRAPHICS, screenManager()));
depthRasterMode->SetDisabledPtr(&g_Config.bSoftwareRendering);
depthRasterMode->SetChoiceIcon(3, ImageID("I_WARNING")); // It's a performance trap.
list->Add(new ItemHeader(dev->T("Ubershaders")));
if (draw->GetShaderLanguageDesc().bitwiseOps && !draw->GetBugs().Has(Draw::Bugs::UNIFORM_INDEXING_BROKEN)) {
// If the above if fails, the checkbox is redundant since it'll be force disabled anyway.