Skip to content

Commit 1fbaffd

Browse files
committed
Pass on hasDefaultAlphaBuffer in the format with the software backend too
The expectation with setDefaultAlphaBuffer(true) is that alphaBufferSize becomes > 0 in the window's format. Follow this with the software backend too. (because it may matter for the backingstore) Pick-to: 6.9 6.8 Task-number: QTBUG-136755 Change-Id: I07ff34056ea51182c2542a259084dcd746d0450e Reviewed-by: Andy Nichols <[email protected]>
1 parent 714726d commit 1fbaffd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/quick/scenegraph/adaptations/software/qsgsoftwarecontext.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ QSurfaceFormat QSGSoftwareContext::defaultSurfaceFormat() const
7171
format.setRenderableType(QSurfaceFormat::DefaultRenderableType);
7272
format.setMajorVersion(0);
7373
format.setMinorVersion(0);
74+
if (QQuickWindow::hasDefaultAlphaBuffer())
75+
format.setAlphaBufferSize(8);
7476
return format;
7577
}
7678

0 commit comments

Comments
 (0)