mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2026-06-02 13:05:00 -06:00
UI: Skip Vulkan in API quick selection if unavailable (#1618)
This commit is contained in:
parent
6be1934af2
commit
e37cbcf2ff
@ -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…
Reference in New Issue
Block a user