should prevent context losses error with some opengl drivers
should prevent corruptions to occur with come opengl drivers
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
#ifdef Q_OS_MAC
Mac::CocoaInitializer cocoaInit; // RIIA
#endif
+
+ auto surfaceFormat = QSurfaceFormat::defaultFormat();
+ surfaceFormat.setOption(QSurfaceFormat::ResetNotification);
+ QSurfaceFormat::setDefaultFormat(surfaceFormat);
+
OCC::Application app(argc, argv);
#ifdef Q_OS_WIN
}
#endif
- auto surfaceFormat = QSurfaceFormat::defaultFormat();
- surfaceFormat.setOption(QSurfaceFormat::ResetNotification);
- QSurfaceFormat::setDefaultFormat(surfaceFormat);
-
// check a environment variable for core dumps
#ifdef Q_OS_UNIX
if (!qEnvironmentVariableIsEmpty("OWNCLOUD_CORE_DUMP")) {