Commit 39a78953 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 bfe2062a)
parent 6fee14d4
Pipeline #235579 passed with stage
in 48 seconds
......@@ -12,6 +12,7 @@
#include <QQmlApplicationEngine>
#include <QQmlContext>
#include <QSessionManager>
#include <QSurfaceFormat>
#include <QWindow>
#include <KAboutData>
......@@ -91,6 +92,10 @@ SessionManager::SessionManager(QObject *parent)
int main(int argc, char **argv)
{
auto format = QSurfaceFormat::defaultFormat();
format.setOption(QSurfaceFormat::ResetNotification);
QSurfaceFormat::setDefaultFormat(format);
QApplication app(argc, argv);
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
app.setAttribute(Qt::AA_UseHighDpiPixmaps, true);
......
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