From 3e9f33bb3e58f03d200a628e48e9ca745628502e Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Tue, 17 Mar 2020 15:37:01 +0100 Subject: [PATCH] More for Qt 5.12 --- libkwineffects/kwinglplatform.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libkwineffects/kwinglplatform.cpp b/libkwineffects/kwinglplatform.cpp index 1ba14ec942..6e8e377324 100644 --- a/libkwineffects/kwinglplatform.cpp +++ b/libkwineffects/kwinglplatform.cpp @@ -687,8 +687,12 @@ void GLPlatform::detect(OpenGLPlatformInterface platformInterface) } } else { const QByteArray extensions = (const char *) glGetString(GL_EXTENSIONS); - QList extensionsList = extensions.split(' '); +#if (QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)) + const QList extensionsList = extensions.split(' '); m_extensions = {extensionsList.constBegin(), extensionsList.constEnd()}; +#else + m_extensions = extensions.split(' ').toSet(); +#endif } // Parse the Mesa version