summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@digia.com>2014-02-19 09:02:51 +0200
committerTomi Korpipää <tomi.korpipaa@digia.com>2014-02-19 09:05:02 +0200
commita6e23473bc7733570c2959574e25f3fadebc6eb7 (patch)
tree3ce6b63f0b57582e67cb2f7148dae23739474bfb
parent07e980e908c45c8d59a566a530e4ef9323aff08c (diff)
Do not create FBO in indirect rendering case if size is invalid
Change-Id: Idd12e984d82411a17f60641bfc4ba49a38ea05d0 Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
-rw-r--r--src/datavisualizationqml2/declarativerendernode.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/datavisualizationqml2/declarativerendernode.cpp b/src/datavisualizationqml2/declarativerendernode.cpp
index 30792f24..f4ce7532 100644
--- a/src/datavisualizationqml2/declarativerendernode.cpp
+++ b/src/datavisualizationqml2/declarativerendernode.cpp
@@ -48,6 +48,9 @@ void DeclarativeRenderNode::renderFBO()
{
QSize size = rect().size().toSize();
+ if (size.width() <= 0 || size.height() <= 0)
+ return;
+
// Create FBO
if (!m_fbo) {
QOpenGLFramebufferObjectFormat format;