diff options
author | Antti Määttä <antti.maatta@qt.io> | 2016-11-22 12:08:12 +0200 |
---|---|---|
committer | Antti Määttä <antti.maatta@qt.io> | 2017-01-26 12:18:23 +0000 |
commit | caf99904a91cb015b681b3ef5a9d8e13fd8323bf (patch) | |
tree | b9b18cd8085111ed67bc493514583dc449f33a45 | |
parent | 1cb4a185b85c2d8a3559e080ba61708607ca47d3 (diff) |
Resend render event when texture is not in use
This ensures that it gets rendered when there is no animation
Change-Id: Ib72808bedaa4a2847932e496980a7fc17fea7bba
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
-rw-r--r-- | src/quick3d/quick3drender/scene2d/scene2d.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/quick3d/quick3drender/scene2d/scene2d.cpp b/src/quick3d/quick3drender/scene2d/scene2d.cpp index 10bb9a3fe..51ddfaea0 100644 --- a/src/quick3d/quick3drender/scene2d/scene2d.cpp +++ b/src/quick3d/quick3drender/scene2d/scene2d.cpp @@ -260,6 +260,7 @@ void Scene2D::render() syncRenderControl(); m_context->doneCurrent(); qCWarning(Qt3DRender::Quick::Scene2D) << Q_FUNC_INFO << "Texture not in use."; + QCoreApplication::postEvent(m_sharedObject->m_renderObject, new QEvent(RENDER)); return; } textureLock->lock(); |