Force Windows & Linux to use ANGLE (like macOS does)

This commit is contained in:
Alex Spataru 2021-12-06 21:07:17 -06:00
parent 2dcae27e84
commit fec6d4e3c2

View File

@ -88,6 +88,11 @@ int main(int argc, char **argv)
QApplication::setAttribute(Qt::AA_UseDesktopOpenGL);
#endif
// Force non-threaded rendering on Windows & Linux (macOS disables this by default)
#if !defined(Q_OS_MAC)
QApplication::setAttribute(Qt::AA_UseOpenGLES);
#endif
// Init. application
QApplication app(argc, argv);
app.setApplicationName(APP_NAME);