mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-17 22:23:31 +00:00
Use QT_OPENGL to set ANGLE
This commit is contained in:
+6
-1
@@ -160,13 +160,18 @@ int main(int argc, char *argv[])
|
|||||||
SDL_LogSetOutputFunction(sdlLogToDiskHandler, nullptr);
|
SDL_LogSetOutputFunction(sdlLogToDiskHandler, nullptr);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
QCoreApplication::setAttribute(Qt::AA_UseOpenGLES);
|
|
||||||
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
||||||
|
|
||||||
// This avoids using the default keychain for SSL, which may cause
|
// This avoids using the default keychain for SSL, which may cause
|
||||||
// password prompts on macOS.
|
// password prompts on macOS.
|
||||||
qputenv("QT_SSL_USE_TEMPORARY_KEYCHAIN", QByteArray("1"));
|
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
|
// Set these here to allow us to use the default QSettings constructor
|
||||||
QCoreApplication::setOrganizationName("Moonlight Game Streaming Project");
|
QCoreApplication::setOrganizationName("Moonlight Game Streaming Project");
|
||||||
QCoreApplication::setOrganizationDomain("moonlight-stream.com");
|
QCoreApplication::setOrganizationDomain("moonlight-stream.com");
|
||||||
|
|||||||
Reference in New Issue
Block a user