From 512fb3abff5e4bf94c9d1a8f46980833f846642a Mon Sep 17 00:00:00 2001 From: lat9nq <22451773+lat9nq@users.noreply.github.com> Date: Mon, 12 Jun 2023 17:05:45 -0400 Subject: [PATCH] configure_graphics: Fix vulkan_device bug --- src/yuzu/configuration/configure_graphics.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/yuzu/configuration/configure_graphics.cpp b/src/yuzu/configuration/configure_graphics.cpp index 9afab6d91..44d1603d0 100644 --- a/src/yuzu/configuration/configure_graphics.cpp +++ b/src/yuzu/configuration/configure_graphics.cpp @@ -394,8 +394,6 @@ void ConfigureGraphics::ApplyConfiguration() { Settings::values.vsync_mode.SetValue(vsync_mode); } - Settings::values.shader_backend.SetGlobal(true); - Settings::values.vulkan_device.SetGlobal(true); if (Settings::IsConfiguringGlobal() || (!Settings::IsConfiguringGlobal() && api_restore_global_button->isEnabled())) { auto backend = static_cast( @@ -404,12 +402,12 @@ void ConfigureGraphics::ApplyConfiguration() { .first); switch (backend) { case Settings::RendererBackend::OpenGL: - Settings::values.shader_backend.SetGlobal(false); + Settings::values.shader_backend.SetGlobal(Settings::IsConfiguringGlobal()); Settings::values.shader_backend.SetValue(static_cast( shader_mapping[shader_backend_combobox->currentIndex()].first)); break; case Settings::RendererBackend::Vulkan: - Settings::values.vulkan_device.SetGlobal(false); + Settings::values.vulkan_device.SetGlobal(Settings::IsConfiguringGlobal()); Settings::values.vulkan_device.SetValue(vulkan_device_combobox->currentIndex()); break; case Settings::RendererBackend::Null: