1
0
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:
Rémi Verschelde
2018-09-15 01:49:54 +02:00
parent 9b97c74f50
commit d3527834f3

View File

@@ -5446,13 +5446,6 @@ EditorNode::EditorNode() {
video_driver_current = 0;
for (int i = 0; i < video_drivers.get_slice_count(","); 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->set_item_metadata(i, driver);