aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/plugins/scenegraph/softwarecontext/context.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/scenegraph/softwarecontext/context.cpp b/src/plugins/scenegraph/softwarecontext/context.cpp
index 42780209c2..1d3bec674d 100644
--- a/src/plugins/scenegraph/softwarecontext/context.cpp
+++ b/src/plugins/scenegraph/softwarecontext/context.cpp
@@ -82,8 +82,9 @@ void Renderer::render()
QPaintDevice *device = m_backingStore->paintDevice();
QPainter painter(device);
painter.setRenderHint(QPainter::Antialiasing);
-
+ painter.setCompositionMode(QPainter::CompositionMode_Source);
painter.fillRect(rect, clearColor());
+ painter.setCompositionMode(QPainter::CompositionMode_SourceOver);
RenderingVisitor(&painter).visitChildren(rootNode());
m_backingStore->endPaint();