Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.6.0, 5.7.0 Beta
-
Arch Linux x86_64, building for android_armv7, Windows, OS X (with retina display)
-
5f92f784834f8648857fa6056ac0a93c96c60543
Description
Having set setRenderTarget(Image) onto a QQuickPaintedItem results in having painter's viewport in the QQuickPaintedItem::paint() pure virtual method as large as the content size, in pixels. It seems fine, as painter->device()>devicePixelRatio() returns 1. When I set render target to FramebufferObject, my item is painted in user-space pixels, meaning that my rendered image is scaled by the devicePixelRatio. As painter>device()->devicePixelRatio() still returns 1, I'd expect it to behave exactly the same as is does when rendering to image.
QQuickPaintedItem::setTextureSize() does not help, as it always raises QOpenGLFramebufferObject: Framebuffer incomplete attachment. error.
Attachments
For Gerrit Dashboard: QTBUG-52901 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
162471,2 | Remove erronous setTextureSize() as it is already set previously | 5.6 | qt/qtdeclarative | Status: MERGED | +2 | 0 |