mirror of
				https://github.com/godotengine/godot.git
				synced 2025-11-03 23:21:15 +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:
		
							parent
							
								
									9b97c74f50
								
							
						
					
					
						commit
						d3527834f3
					
				
					 1 changed files with 0 additions and 7 deletions
				
			
		| 
						 | 
					@ -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);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue