Fix canvas item drawImage bug with FBO render target
authorCharles Yin <charles.yin@nokia.com>
Mon, 28 May 2012 00:48:37 +0000 (10:48 +1000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 4 Jun 2012 23:59:58 +0000 (01:59 +0200)
commit41a9f34461e34c171ce7ecc4b3e9bc64948ffbde
tree64272e64e1fb99758810a039cee38ea7333084e5
parent3747f1972db869853a593f869154debf174c9cf2
Fix canvas item drawImage bug with FBO render target

If canvas' render target is FramebufferObject, only the first drawImage() call
was successful, it could be fixed by adding beginNativePainting() and endNativePainting(),
but this could be unexpected behavior with OpenGL paint engine.

task-number: QTBUG-23595
Change-Id: Iff70fc88f6d39655dd283fa5dde3365887910460
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
src/quick/items/context2d/qquickcontext2dcommandbuffer.cpp
tests/auto/quick/qquickcanvasitem/data/tst_image.qml