From ec6db2142042fb3cdb992a1bc711ab4cb835d95d Mon Sep 17 00:00:00 2001 From: cdozdil Date: Tue, 17 Sep 2024 16:19:54 +0300 Subject: [PATCH] fixed fsr3 crash --- OptiScaler/imgui/imgui_common.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OptiScaler/imgui/imgui_common.cpp b/OptiScaler/imgui/imgui_common.cpp index 3c02bef5..933baeba 100644 --- a/OptiScaler/imgui/imgui_common.cpp +++ b/OptiScaler/imgui/imgui_common.cpp @@ -963,7 +963,7 @@ void ImGuiCommon::RenderMenu() if (_fsr3xIndex < 0) _fsr3xIndex = Config::Instance()->Fsr3xIndex.value_or(0); - if (currentBackend == "fsr31" || currentBackend == "fsr31_12") + if (currentBackend == "fsr31" || currentBackend == "fsr31_12" && Config::Instance()->fsr3xVersionNames.size() > 0) { auto currentName = std::format("FSR {}", Config::Instance()->fsr3xVersionNames[_fsr3xIndex]); if (ImGui::BeginCombo("Upscaler", currentName.c_str()))