mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2025-01-05 18:25:58 +03:00
Force use of ANGLE on Windows.
This commit is contained in:
parent
1d3fae1d86
commit
e22eb559b7
5
main.cpp
5
main.cpp
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user