mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2024-09-20 14:11:54 +00:00
Use QT_OPENGL to set ANGLE
This commit is contained in:
parent
bbd784fc85
commit
55f0e1e1d5
1 changed files with 6 additions and 1 deletions
|
@ -160,13 +160,18 @@ int main(int argc, char *argv[])
|
|||
SDL_LogSetOutputFunction(sdlLogToDiskHandler, nullptr);
|
||||
#endif
|
||||
|
||||
QCoreApplication::setAttribute(Qt::AA_UseOpenGLES);
|
||||
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
||||
|
||||
// This avoids using the default keychain for SSL, which may cause
|
||||
// password prompts on macOS.
|
||||
qputenv("QT_SSL_USE_TEMPORARY_KEYCHAIN", QByteArray("1"));
|
||||
|
||||
#ifdef Q_OS_WIN32
|
||||
// On Windows, use ANGLE so we don't have to load both DX and OGL
|
||||
// user-mode drivers into our app.
|
||||
qputenv("QT_OPENGL", "angle");
|
||||
#endif
|
||||
|
||||
// Set these here to allow us to use the default QSettings constructor
|
||||
QCoreApplication::setOrganizationName("Moonlight Game Streaming Project");
|
||||
QCoreApplication::setOrganizationDomain("moonlight-stream.com");
|
||||
|
|
Loading…
Reference in a new issue