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
This commit is contained in:
parent
1b3060649c
commit
02917b2335
@ -413,9 +413,6 @@ Dialog::Dialog(QQuickItem *parent)
|
|||||||
: QQuickWindow(parent ? parent->window() : 0),
|
: QQuickWindow(parent ? parent->window() : 0),
|
||||||
d(new DialogPrivate(this))
|
d(new DialogPrivate(this))
|
||||||
{
|
{
|
||||||
QSurfaceFormat format;
|
|
||||||
format.setAlphaBufferSize(8);
|
|
||||||
setFormat(format);
|
|
||||||
setClearBeforeRendering(true);
|
setClearBeforeRendering(true);
|
||||||
setColor(QColor(Qt::transparent));
|
setColor(QColor(Qt::transparent));
|
||||||
setFlags(Qt::FramelessWindowHint);
|
setFlags(Qt::FramelessWindowHint);
|
||||||
|
@ -159,10 +159,6 @@ View::View(Plasma::Corona *corona, QWindow *parent)
|
|||||||
: QQuickView(parent),
|
: QQuickView(parent),
|
||||||
d(new ViewPrivate(corona, this))
|
d(new ViewPrivate(corona, this))
|
||||||
{
|
{
|
||||||
QSurfaceFormat format;
|
|
||||||
format.setAlphaBufferSize(8);
|
|
||||||
|
|
||||||
setFormat(format);
|
|
||||||
setColor(Qt::transparent);
|
setColor(Qt::transparent);
|
||||||
|
|
||||||
QObject::connect(screen(), &QScreen::geometryChanged,
|
QObject::connect(screen(), &QScreen::geometryChanged,
|
||||||
|
Loading…
Reference in New Issue
Block a user