diff options
| author | 2023-06-15 17:17:50 -0400 | |
|---|---|---|
| committer | 2023-07-21 10:56:54 -0400 | |
| commit | 57a00e01d69eaf413d162899c32dd1e04aa3e157 (patch) | |
| tree | 084ed5955c1236b3f1830621c611fa5d352e74fe /src | |
| parent | configuration: Use shorter constructor as needed (diff) | |
| download | yuzu-57a00e01d69eaf413d162899c32dd1e04aa3e157.tar.gz yuzu-57a00e01d69eaf413d162899c32dd1e04aa3e157.tar.xz yuzu-57a00e01d69eaf413d162899c32dd1e04aa3e157.zip | |
configure_graphcs: Fix setting shader/device in custom config
Diffstat (limited to 'src')
| -rw-r--r-- | src/yuzu/configuration/configure_graphics.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/yuzu/configuration/configure_graphics.cpp b/src/yuzu/configuration/configure_graphics.cpp index cf1333cc8..673921649 100644 --- a/src/yuzu/configuration/configure_graphics.cpp +++ b/src/yuzu/configuration/configure_graphics.cpp | |||
| @@ -267,6 +267,7 @@ void ConfigureGraphics::Setup() { | |||
| 267 | } | 267 | } |
| 268 | 268 | ||
| 269 | if (setting->Id() == Settings::values.renderer_backend.Id()) { | 269 | if (setting->Id() == Settings::values.renderer_backend.Id()) { |
| 270 | // Add the renderer combobox now so it's at the top | ||
| 270 | api_grid_layout->addWidget(widget); | 271 | api_grid_layout->addWidget(widget); |
| 271 | api_combobox = widget->combobox; | 272 | api_combobox = widget->combobox; |
| 272 | api_restore_global_button = widget->restore_button; | 273 | api_restore_global_button = widget->restore_button; |
| @@ -393,6 +394,8 @@ void ConfigureGraphics::ApplyConfiguration() { | |||
| 393 | Settings::values.vsync_mode.SetValue(vsync_mode); | 394 | Settings::values.vsync_mode.SetValue(vsync_mode); |
| 394 | } | 395 | } |
| 395 | 396 | ||
| 397 | Settings::values.vulkan_device.SetGlobal(true); | ||
| 398 | Settings::values.shader_backend.SetGlobal(true); | ||
| 396 | if (Settings::IsConfiguringGlobal() || | 399 | if (Settings::IsConfiguringGlobal() || |
| 397 | (!Settings::IsConfiguringGlobal() && api_restore_global_button->isEnabled())) { | 400 | (!Settings::IsConfiguringGlobal() && api_restore_global_button->isEnabled())) { |
| 398 | auto backend = static_cast<Settings::RendererBackend>( | 401 | auto backend = static_cast<Settings::RendererBackend>( |