diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-06-26 17:18:37 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-06-26 21:08:06 +0200 |
commit | ccb9eb0cc17c689f6be61e83d2d9fb5724a6338d (patch) | |
tree | b68f89d1bdf582b5dd89259b2b1da5dd43cb1b0b /tests | |
parent | e79281533d61dda90d1c5995345a66e6089c7501 (diff) |
Follow QQuickGraphicsDevice changes in QQuickRenderTarget
They are not strictly related of course, but the API pattern should be
kept. We can also move away from the QSGTexture dependency which is good
since that was never directly related.
Change-Id: I9aedff5918443bda3d6e3ee1ea389071222d1ad7
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/quick/qquickrendercontrol/tst_qquickrendercontrol.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/auto/quick/qquickrendercontrol/tst_qquickrendercontrol.cpp b/tests/auto/quick/qquickrendercontrol/tst_qquickrendercontrol.cpp index a2217f5427..d81c40f5b6 100644 --- a/tests/auto/quick/qquickrendercontrol/tst_qquickrendercontrol.cpp +++ b/tests/auto/quick/qquickrendercontrol/tst_qquickrendercontrol.cpp @@ -487,8 +487,9 @@ void tst_RenderControl::renderAndReadBackWithVulkanNative() QCOMPARE(err, VK_SUCCESS); // Tell Qt Quick to target our VkImage. - quickWindow->setRenderTarget(QQuickRenderTarget::fromNativeTexture({ quint64(img), VK_IMAGE_LAYOUT_PREINITIALIZED }, - rootItem->size().toSize())); + quickWindow->setRenderTarget(QQuickRenderTarget::fromVulkanImage(img, + VK_IMAGE_LAYOUT_PREINITIALIZED, + rootItem->size().toSize())); // Create a readback buffer. VkBuffer buf = VK_NULL_HANDLE; |