Use NVIDIA blacklist on any system using desktop-app's Linux platform code
This commit is contained in:
		
							parent
							
								
									849a840503
								
							
						
					
					
						commit
						503320296d
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -174,8 +174,9 @@ Capabilities CheckCapabilities(QWidget *widget) {
 | 
			
		|||
		LOG(("EGL Extensions: %1").arg(egllist.join(", ")));
 | 
			
		||||
#endif // Q_OS_WIN
 | 
			
		||||
 | 
			
		||||
#ifdef Q_OS_LINUX
 | 
			
		||||
		if (version && QByteArray(version).contains("NVIDIA")) {
 | 
			
		||||
		if (::Platform::IsLinux()
 | 
			
		||||
			&& version
 | 
			
		||||
			&& QByteArray(version).contains("NVIDIA")) {
 | 
			
		||||
			// https://github.com/telegramdesktop/tdesktop/issues/16830
 | 
			
		||||
			if (AllowLinuxNvidiaOpenGL.value()) {
 | 
			
		||||
				LOG_ONCE(("OpenGL: Allow on NVIDIA driver (experimental)."));
 | 
			
		||||
| 
						 | 
				
			
			@ -184,7 +185,6 @@ Capabilities CheckCapabilities(QWidget *widget) {
 | 
			
		|||
				return false;
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
#endif // Q_OS_LINUX
 | 
			
		||||
 | 
			
		||||
		return true;
 | 
			
		||||
	}();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue