From 02917b233536f115754fc81cd1458b77ccd4688c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Wed, 14 May 2014 11:38:31 +0200 Subject: [PATCH] Do not set a custom format on QQuickWindows All QQuickWindows share a default format. By setting a custom format it overwrites the default and this results in a format without a stencil buffer being requested resulting in possible rendering errors. REVIEW: 118122 --- src/plasmaquick/dialog.cpp | 3 --- src/plasmaquick/view.cpp | 4 ---- 2 files changed, 7 deletions(-) diff --git a/src/plasmaquick/dialog.cpp b/src/plasmaquick/dialog.cpp index 86efb1464..3a68f1855 100644 --- a/src/plasmaquick/dialog.cpp +++ b/src/plasmaquick/dialog.cpp @@ -413,9 +413,6 @@ Dialog::Dialog(QQuickItem *parent) : QQuickWindow(parent ? parent->window() : 0), d(new DialogPrivate(this)) { - QSurfaceFormat format; - format.setAlphaBufferSize(8); - setFormat(format); setClearBeforeRendering(true); setColor(QColor(Qt::transparent)); setFlags(Qt::FramelessWindowHint); diff --git a/src/plasmaquick/view.cpp b/src/plasmaquick/view.cpp index 6c0ed5447..74da42823 100644 --- a/src/plasmaquick/view.cpp +++ b/src/plasmaquick/view.cpp @@ -159,10 +159,6 @@ View::View(Plasma::Corona *corona, QWindow *parent) : QQuickView(parent), d(new ViewPrivate(corona, this)) { - QSurfaceFormat format; - format.setAlphaBufferSize(8); - - setFormat(format); setColor(Qt::transparent); QObject::connect(screen(), &QScreen::geometryChanged,