scene: Use correct scale when computing world transform
If render target scale is set in WindowPaintData, use it. Otherwise window screenshots with logical geometry can look wrong.
This commit is contained in:
parent
fd9504f649
commit
ae72f61a4a
1 changed files with 1 additions and 1 deletions
|
@ -262,7 +262,7 @@ void ItemRendererOpenGL::renderItem(Item *item, int mask, const QRegion ®ion,
|
|||
renderContext.transformStack.push(QMatrix4x4());
|
||||
renderContext.opacityStack.push(data.opacity());
|
||||
|
||||
item->setTransform(data.toMatrix(renderTargetScale()));
|
||||
item->setTransform(data.toMatrix(renderContext.renderTargetScale));
|
||||
|
||||
createRenderNode(item, &renderContext);
|
||||
|
||||
|
|
Loading…
Reference in a new issue