mirror of
https://github.com/Serial-Studio/Serial-Studio.git
synced 2025-01-15 05:22:53 +08:00
Force Windows & Linux to use ANGLE (like macOS does)
This commit is contained in:
parent
2dcae27e84
commit
fec6d4e3c2
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user