aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/scenegraph
diff options
context:
space:
mode:
authorLaszlo Agocs <[email protected]>2025-05-13 14:32:54 +0200
committerLaszlo Agocs <[email protected]>2025-05-13 18:07:11 +0200
commit1fbaffd62ef465ea2f83191fb1078bd4b2e7539a (patch)
tree8e398b394a261eb0b047254f448068583691f682 /src/quick/scenegraph
parent714726d1c48915f663b9a4e8f4d7b1e051fbbc27 (diff)
Pass on hasDefaultAlphaBuffer in the format with the software backend tooHEADdev
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]>
Diffstat (limited to 'src/quick/scenegraph')
-rw-r--r--src/quick/scenegraph/adaptations/software/qsgsoftwarecontext.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/quick/scenegraph/adaptations/software/qsgsoftwarecontext.cpp b/src/quick/scenegraph/adaptations/software/qsgsoftwarecontext.cpp
index 25397216bb..3753832a98 100644
--- a/src/quick/scenegraph/adaptations/software/qsgsoftwarecontext.cpp
+++ b/src/quick/scenegraph/adaptations/software/qsgsoftwarecontext.cpp
@@ -71,6 +71,8 @@ QSurfaceFormat QSGSoftwareContext::defaultSurfaceFormat() const
format.setRenderableType(QSurfaceFormat::DefaultRenderableType);
format.setMajorVersion(0);
format.setMinorVersion(0);
+ if (QQuickWindow::hasDefaultAlphaBuffer())
+ format.setAlphaBufferSize(8);
return format;
}