Force use of ANGLE on Windows.

This commit is contained in:
Dag Heyman 2017-08-08 11:05:55 +02:00
parent 1d3fae1d86
commit e22eb559b7
No known key found for this signature in database
GPG Key ID: 06FC004369E7D338

View File

@ -20,6 +20,11 @@ int main(int argc, char *argv[])
// Don't write .pyc files.
qputenv("PYTHONDONTWRITEBYTECODE", "1");
// Use ANGLE on WIndows
#ifdef Q_OS_WIN
qputenv("QT_OPENGL", "angle");
#endif
#if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
#endif