mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-29 23:06:23 -05:00
configure_graphcs: Fix setting shader/device in custom config
This commit is contained in:
parent
a7ee9d999f
commit
57a00e01d6
1 changed files with 3 additions and 0 deletions
|
@ -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>(
|
||||||
|
|
Loading…
Reference in a new issue