mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-10 03:42:05 +02:00
Merge pull request #2919
c946905
OpenGL: Windows - fall back to software renderer if OpenGL < 2.1 (xiphon)
This commit is contained in:
commit
e6c4c32d01
@ -75,6 +75,10 @@
|
|||||||
#include "daemon/DaemonManager.h"
|
#include "daemon/DaemonManager.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(Q_OS_WIN)
|
||||||
|
#include <QOpenGLContext>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef WITH_SCANNER
|
#ifdef WITH_SCANNER
|
||||||
#include "QR-Code-scanner/QrCodeScanner.h"
|
#include "QR-Code-scanner/QrCodeScanner.h"
|
||||||
#endif
|
#endif
|
||||||
@ -179,6 +183,17 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
MainApp app(argc, argv);
|
MainApp app(argc, argv);
|
||||||
|
|
||||||
|
#if defined(Q_OS_WIN)
|
||||||
|
if (isOpenGL)
|
||||||
|
{
|
||||||
|
QOpenGLContext ctx;
|
||||||
|
isOpenGL = ctx.create() && ctx.format().version() >= qMakePair(2, 1);
|
||||||
|
if (!isOpenGL) {
|
||||||
|
qputenv("QMLSCENE_DEVICE", "softwarecontext");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
app.setApplicationName("monero-core");
|
app.setApplicationName("monero-core");
|
||||||
app.setOrganizationDomain("getmonero.org");
|
app.setOrganizationDomain("getmonero.org");
|
||||||
app.setOrganizationName("monero-project");
|
app.setOrganizationName("monero-project");
|
||||||
|
Loading…
Reference in New Issue
Block a user