qvulkanwindow: use qimage rvalue overalods more
Pick-to: 6.6 Change-Id: I71bb0df5dbf1993284ec907f637a8696898dddb1 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
This commit is contained in:
parent
9548118443
commit
5e158ee177
@ -2749,7 +2749,7 @@ QImage QVulkanWindow::grab()
|
||||
d->beginFrame();
|
||||
|
||||
if (d->colorFormat == VK_FORMAT_B8G8R8A8_UNORM)
|
||||
d->frameGrabTargetImage = d->frameGrabTargetImage.rgbSwapped();
|
||||
d->frameGrabTargetImage = std::move(d->frameGrabTargetImage).rgbSwapped();
|
||||
|
||||
return d->frameGrabTargetImage;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user