You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Fix video toggle UX issue
It was still functional but showing duplicate entries and thus "GLES2" for both GLES2 and GLES3 choices. Fixes #22089.
This commit is contained in:
@@ -5446,13 +5446,6 @@ EditorNode::EditorNode() {
|
|||||||
video_driver_current = 0;
|
video_driver_current = 0;
|
||||||
for (int i = 0; i < video_drivers.get_slice_count(","); i++) {
|
for (int i = 0; i < video_drivers.get_slice_count(","); i++) {
|
||||||
String driver = video_drivers.get_slice(",", i);
|
String driver = video_drivers.get_slice(",", i);
|
||||||
Ref<Texture> icon = get_class_icon(driver, "");
|
|
||||||
if (icon.is_valid()) {
|
|
||||||
video_driver->add_icon_item(icon, "");
|
|
||||||
} else {
|
|
||||||
video_driver->add_item(driver);
|
|
||||||
}
|
|
||||||
|
|
||||||
video_driver->add_item(driver);
|
video_driver->add_item(driver);
|
||||||
video_driver->set_item_metadata(i, driver);
|
video_driver->set_item_metadata(i, driver);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user