Fix FBO recreated every time the QSG node is updated under some conditions
authorTaylor Braun-Jones <taylor.braun-jones@ge.com>
Fri, 1 Aug 2014 14:48:37 +0000 (10:48 -0400)
committerGunnar Sletta <gunnar.sletta@jollamobile.com>
Tue, 5 Aug 2014 05:46:17 +0000 (07:46 +0200)
commit89a01dcbc2d427e661c19d50c5b875b1dc54b2f9
treead48aee8875990ef1ed757ffb062819e27d66d7d
parent3f5141e5b7227630ca89329a92b6ebddbcb1b7a5
Fix FBO recreated every time the QSG node is updated under some conditions

When textureFollowsItemsSize is true and the item width/height are (1)
not precise integer values or (2) less than the minimum FBO
width/height, then QQuickFramebufferObject will delete and recreate the
FBO every time the QSG node is updated. This patch fixes the issue.

Task-number: QTBUG-40548
Change-Id: I532aaaa88a5c604ee7cc1fd8f0acb0601c5a94fb
Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
src/quick/items/qquickframebufferobject.cpp