Commit 6d7d29d1 authored by Andrey Butirsky's avatar Andrey Butirsky
Browse files

Set QSurfaceFormat::ResetNotification

This got lost in frameworks porting from shared KDeclarative code and is
important especially for nvidia after suspend+resume.


(cherry picked from commit 114fccad)
parent e964303b
Pipeline #235444 passed with stage
in 1 minute and 19 seconds
......@@ -13,6 +13,7 @@
#include <KLocalizedString>
#include <QDebug>
#include <QPixmapCache>
#include <QSurfaceFormat>
#include <qcommandlineoption.h>
#include <qcommandlineparser.h>
......@@ -25,6 +26,10 @@ int main(int argc, char **argv)
{
QQmlDebuggingEnabler debugEnabler;
auto format = QSurfaceFormat::defaultFormat();
format.setOption(QSurfaceFormat::ResetNotification);
QSurfaceFormat::setDefaultFormat(format);
QApplication app(argc, argv);
KLocalizedString::setApplicationDomain("plasmoidviewer");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment