diff options
author | Andy Nichols <andy.nichols@digia.com> | 2014-09-09 18:33:26 +0200 |
---|---|---|
committer | Andy Nichols <andy.nichols@digia.com> | 2014-09-11 15:37:37 +0300 |
commit | 5b7047618323a9be74169f5a0bbac35b429567e7 (patch) | |
tree | 9a499e24fd1ed0add5d4d8d3b053cb3145755c4c /src/plugins/scenegraph/softwarecontext/context.cpp | |
parent | 60c81befa22108a96bbf505c40f4a2af8ed843e2 (diff) |
SoftwareLayer::grab must call QSGRenderer::renderScene to work correctly
If QSGRenderer::renderScene is not called by SoftwareLayer then any
updates in the scenegraph will not be reflected in that layer. This is
the "live" but not "recursive" situation.
Change-Id: If55cc71b3932e283855e3a1f9ff1bca5e07f4498
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/plugins/scenegraph/softwarecontext/context.cpp')
-rw-r--r-- | src/plugins/scenegraph/softwarecontext/context.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/plugins/scenegraph/softwarecontext/context.cpp b/src/plugins/scenegraph/softwarecontext/context.cpp index 345728f833..42780209c2 100644 --- a/src/plugins/scenegraph/softwarecontext/context.cpp +++ b/src/plugins/scenegraph/softwarecontext/context.cpp @@ -104,12 +104,17 @@ PixmapRenderer::PixmapRenderer(QSGRenderContext *context) void PixmapRenderer::renderScene(GLuint) { - Q_UNREACHABLE(); + class B : public QSGBindable + { + public: + void bind() const { } + } bindable; + QSGRenderer::renderScene(bindable); } void PixmapRenderer::render() { - Q_UNREACHABLE(); + } void PixmapRenderer::render(QPixmap *target) |