Use EGL_VENDOR instead of NV-CONTROL for Nvidia detection

The latter will still match on a hybrid system when the iGPU's EGL
implementation is in use. This scenario works properly with EGL
rendering in Qt and SDL, so we want to allow that.
This commit is contained in:
Cameron Gutman
2025-12-06 11:07:52 -06:00
parent c92dc2495e
commit 9c6d2bab19
4 changed files with 36 additions and 28 deletions
+2 -1
View File
@@ -7,9 +7,10 @@
namespace WMUtils {
bool isRunningX11();
bool isRunningX11NvidiaProprietaryDriver();
bool isRunningNvidiaProprietaryDriver();
bool isRunningWayland();
bool isRunningWindowManager();
bool isRunningDesktopEnvironment();
bool isEGLSafe();
QString getDrmCardOverride();
}