Fix rendering to QQuickWindow::renderTarget.
authorGunnar Sletta <gunnar@sletta.org>
Thu, 20 Aug 2015 12:16:15 +0000 (14:16 +0200)
committerGunnar Sletta <gunnar@sletta.org>
Thu, 20 Aug 2015 12:29:12 +0000 (12:29 +0000)
commit6dda1b425867b76fb001b11f43836c56e24ab7a4
tree78acad6a7b5990421e04a18154368477713381ab
parent3f4d7a755585f1b79c7e9675220b8210f10f358e
Fix rendering to QQuickWindow::renderTarget.

When setting an FBO, the size of the window should be irrelevant,
so we need to use the renderTargetSize to specify the viewport and
device rect.

Change-Id: Id76736cfaf6c511439bb8af80e3c641025d9d547
Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
src/quick/items/qquickwindow.cpp