Disable the DRM master hooks when EGLFS isn't used

This commit is contained in:
Cameron Gutman
2026-02-05 22:36:31 -06:00
parent f6a9e7694a
commit 0a2b134d49
4 changed files with 31 additions and 1 deletions

View File

@@ -85,6 +85,10 @@ static QAtomicInteger<uint64_t> s_LogBytesWritten = 0;
static QFile* s_LoggerFile;
#endif
#ifdef HAVE_DRM_MASTER_HOOKS
extern "C" bool g_DisableDrmHooks;
#endif
class LoggerTask : public QRunnable
{
public:
@@ -789,6 +793,11 @@ int main(int argc, char *argv[])
}
#endif
#ifdef HAVE_DRM_MASTER_HOOKS
// Only use the Qt-SDL DRM master interoperability hooks if Qt is using KMS
g_DisableDrmHooks = QGuiApplication::platformName() != "eglfs";
#endif
#ifdef STEAM_LINK
// Qt 5.9 from the Steam Link SDK is not able to load any fonts
// since the Steam Link doesn't include any of the ones it looks