aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/scenegraph/softwarecontext/softwarelayer.cpp
diff options
context:
space:
mode:
authorJocelyn Turcotte <jocelyn.turcotte@digia.com>2014-12-04 16:17:27 +0100
committerSimon Hausmann <simon.hausmann@theqtcompany.com>2014-12-17 16:43:22 +0200
commit1dae7aa22fcd16ff7d3d47c173c8590e4841f141 (patch)
treecfa772ae483d04630fa97c03204d8fed6b0ecb23 /src/plugins/scenegraph/softwarecontext/softwarelayer.cpp
parentde42b3a21ddb8aadd2f01c3f4c15663f78545ae6 (diff)
Support QSGLayer::setRect
Carry any non-full rect from the layer to QPainter::setWindow. This is needed by cc::RenderPass::output_rect in QtWebEngine. Change-Id: I8ffd7f0b7646e664a225df096de455899338d4ba Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/plugins/scenegraph/softwarecontext/softwarelayer.cpp')
-rw-r--r--src/plugins/scenegraph/softwarecontext/softwarelayer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/scenegraph/softwarecontext/softwarelayer.cpp b/src/plugins/scenegraph/softwarecontext/softwarelayer.cpp
index 037c73a08e..61f5aa031f 100644
--- a/src/plugins/scenegraph/softwarecontext/softwarelayer.cpp
+++ b/src/plugins/scenegraph/softwarecontext/softwarelayer.cpp
@@ -196,6 +196,7 @@ void SoftwareLayer::grab()
m_renderer->setDeviceRect(m_size);
m_renderer->setViewportRect(m_size);
+ m_renderer->m_projectionRect = m_rect.toRect();
m_renderer->setClearColor(Qt::transparent);
m_renderer->renderScene();