mirror of
https://github.com/godotengine/godot.git
synced 2024-11-10 06:03:09 +00:00
Apply prefer_wayland only if no display driver is set
Before this patch any other display driver preference would be overridden.
This commit is contained in:
parent
e343dbbcc1
commit
755dbde873
@ -2631,10 +2631,12 @@ Error Main::setup2(bool p_show_boot_logo) {
|
||||
}
|
||||
}
|
||||
|
||||
if (prefer_wayland) {
|
||||
display_driver = "wayland";
|
||||
} else {
|
||||
display_driver = "default";
|
||||
if (display_driver.is_empty()) {
|
||||
if (prefer_wayland) {
|
||||
display_driver = "wayland";
|
||||
} else {
|
||||
display_driver = "default";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user