Do not create FBO in indirect rendering case if size is invalid

Change-Id: Idd12e984d82411a17f60641bfc4ba49a38ea05d0
Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
This commit is contained in:
Miikka Heikkinen 2014-02-19 09:02:51 +02:00 committed by Tomi Korpipää
parent 07e980e908
commit a6e23473bc
1 changed files with 3 additions and 0 deletions

View File

@ -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;