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:
parent
9b97c74f50
commit
d3527834f3
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue