Disable the DRM master hooks when EGLFS isn't used
This commit is contained in:
parent
f6a9e7694a
commit
0a2b134d49
4 changed files with 31 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue