windows: fix win 7 check

This commit is contained in:
Dag Heyman 2017-09-08 14:30:40 +02:00
parent b52d2dc576
commit 3c29fa5619
No known key found for this signature in database
GPG Key ID: 06FC004369E7D338

View File

@ -50,7 +50,7 @@ int main(int argc, char *argv[])
// Use software opengl on Windows 7, because of issues with ANGLE.
// More reading: http://doc.qt.io/qt-5/windows-requirements.html#graphics-drivers
#ifdef Q_OS_WIN
if (QString("7") == QSysInfo::productVersion()) {
if (QSysInfo::productVersion().contains("7")) {
app.setAttribute(Qt::AA_UseSoftwareOpenGL);
} else {
app.setAttribute(Qt::AA_UseOpenGLES);