mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-31 04:31:15 -06:00 
			
		
		
		
	Further ChromeOS support: Detect removable media mounted through ChromeOS
This commit is contained in:
		
							parent
							
								
									9c80c6a4af
								
							
						
					
					
						commit
						2b19708720
					
				
					 2 changed files with 5 additions and 0 deletions
				
			
		|  | @ -256,11 +256,13 @@ bool OpenGLManager::init_gl() | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         if (valid_version) { |         if (valid_version) { | ||||||
|  | #ifdef __linux__ | ||||||
|             if (s_gl_info.get_renderer() == "virgl") |             if (s_gl_info.get_renderer() == "virgl") | ||||||
|                 // Disable multi-sampling with virgl (VirtualGL) on Linux.
 |                 // Disable multi-sampling with virgl (VirtualGL) on Linux.
 | ||||||
|                 // Namely, on ChromeOS virgl flips red/blue channels at least on some computers with multi-sampling enabled.
 |                 // Namely, on ChromeOS virgl flips red/blue channels at least on some computers with multi-sampling enabled.
 | ||||||
|                 // It seems it is sufficient to disable multi-sampling after the OpenGL context is created.
 |                 // It seems it is sufficient to disable multi-sampling after the OpenGL context is created.
 | ||||||
|                 s_multisample = EMultisampleState::Disabled; |                 s_multisample = EMultisampleState::Disabled; | ||||||
|  | #endif // __linux__
 | ||||||
|             // load shaders
 |             // load shaders
 | ||||||
|             auto [result, error] = m_shaders_manager.init(); |             auto [result, error] = m_shaders_manager.init(); | ||||||
|             if (!result) { |             if (!result) { | ||||||
|  |  | ||||||
|  | @ -247,6 +247,9 @@ std::vector<DriveData> RemovableDriveManager::search_for_removable_drives() cons | ||||||
| 	path = "/run" + path; | 	path = "/run" + path; | ||||||
| 	pp = "/run"+pp; | 	pp = "/run"+pp; | ||||||
| 	search_for_drives_internal::search_path(path, pp, current_drives); | 	search_for_drives_internal::search_path(path, pp, current_drives); | ||||||
|  | 
 | ||||||
|  |     // ChromeOS specific: search /mnt/chromeos/removable/* folder
 | ||||||
|  | 	search_for_drives_internal::search_path("/mnt/chromeos/removable/*", "/mnt/chromeos/removable", current_drives); | ||||||
| #endif | #endif | ||||||
| 
 | 
 | ||||||
| 	return current_drives; | 	return current_drives; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Vojtech Bubnik
						Vojtech Bubnik