mirror of
https://github.com/azahar-emu/azahar.git
synced 2026-06-06 02:33:44 -04:00
UI: Skip Vulkan in API quick selection if unavailable (#1618)
This commit is contained in:
parent
6be1934af2
commit
e37cbcf2ff
1 changed files with 6 additions and 0 deletions
|
|
@ -3677,6 +3677,12 @@ void GMainWindow::UpdateAPIIndicator(bool update) {
|
||||||
if (api_index == static_cast<u32>(Settings::GraphicsAPI::Vulkan)) {
|
if (api_index == static_cast<u32>(Settings::GraphicsAPI::Vulkan)) {
|
||||||
api_index = (api_index + 1) % graphics_apis.size();
|
api_index = (api_index + 1) % graphics_apis.size();
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
if (physical_devices.empty()) {
|
||||||
|
if (api_index == static_cast<u32>(Settings::GraphicsAPI::Vulkan)) {
|
||||||
|
api_index = (api_index + 1) % graphics_apis.size();
|
||||||
|
}
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
Settings::values.graphics_api = static_cast<Settings::GraphicsAPI>(api_index);
|
Settings::values.graphics_api = static_cast<Settings::GraphicsAPI>(api_index);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue