aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}