Fix tile rendering bug for context2d
authorCharles Yin <charles.yin@nokia.com>
Fri, 4 May 2012 01:21:14 +0000 (11:21 +1000)
committerQt by Nokia <qt-info@nokia.com>
Fri, 4 May 2012 06:47:38 +0000 (08:47 +0200)
commitc96c1d152c8506afb3993f23ac7cf35e46fb808f
treece42c6487326f1ec0a3212c81618a6dcc54e5a11
parent4b69c1ad76d86f4c197e6b32e64eb1a4f75c03f7
Fix tile rendering bug for context2d

aboutToDraw() should be called before checking the painter device,
if no device, aboutToDraw() will create a new one.

Also just release the FBO when delete tile, not need to release the fbo
after each draw.

Change-Id: Ida5954f1c65f25f0ce273f732c1608ed49bc148c
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
src/quick/items/context2d/qquickcontext2dtile.cpp