Use NVIDIA blacklist on any system using desktop-app's Linux platform code

This commit is contained in:
Ilya Fedin 2023-03-12 23:28:58 +04:00 committed by John Preston
parent 849a840503
commit 503320296d

View file

@ -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;
}();