mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-04-14 11:46:18 +00:00
Disable the DRM master hooks when EGLFS isn't used
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user