yuzu-emu
/
yuzu-android
Archived
1
0
Fork 0

configure_graphcs: Fix setting shader/device in custom config

This commit is contained in:
lat9nq 2023-06-15 17:17:50 -04:00
parent a7ee9d999f
commit 57a00e01d6
1 changed files with 3 additions and 0 deletions

View File

@ -267,6 +267,7 @@ void ConfigureGraphics::Setup() {
} }
if (setting->Id() == Settings::values.renderer_backend.Id()) { if (setting->Id() == Settings::values.renderer_backend.Id()) {
// Add the renderer combobox now so it's at the top
api_grid_layout->addWidget(widget); api_grid_layout->addWidget(widget);
api_combobox = widget->combobox; api_combobox = widget->combobox;
api_restore_global_button = widget->restore_button; api_restore_global_button = widget->restore_button;
@ -393,6 +394,8 @@ void ConfigureGraphics::ApplyConfiguration() {
Settings::values.vsync_mode.SetValue(vsync_mode); Settings::values.vsync_mode.SetValue(vsync_mode);
} }
Settings::values.vulkan_device.SetGlobal(true);
Settings::values.shader_backend.SetGlobal(true);
if (Settings::IsConfiguringGlobal() || if (Settings::IsConfiguringGlobal() ||
(!Settings::IsConfiguringGlobal() && api_restore_global_button->isEnabled())) { (!Settings::IsConfiguringGlobal() && api_restore_global_button->isEnabled())) {
auto backend = static_cast<Settings::RendererBackend>( auto backend = static_cast<Settings::RendererBackend>(