From 76e6f8e9979dec8f5c37580aa3d8bffa5ffef2dd Mon Sep 17 00:00:00 2001 From: Eskil Abrahamsen Blomfeldt Date: Tue, 19 May 2020 15:42:17 +0200 Subject: [PATCH] Fix assert in tst_QQuickRenderControl We should not call device functions after resetting them. Change-Id: I0470792457eff070ba3aeb767f5f5be622ebda42 Reviewed-by: Laszlo Agocs --- .../auto/quick/qquickrendercontrol/tst_qquickrendercontrol.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/auto/quick/qquickrendercontrol/tst_qquickrendercontrol.cpp b/tests/auto/quick/qquickrendercontrol/tst_qquickrendercontrol.cpp index c879684592..b0dd2d0c94 100644 --- a/tests/auto/quick/qquickrendercontrol/tst_qquickrendercontrol.cpp +++ b/tests/auto/quick/qquickrendercontrol/tst_qquickrendercontrol.cpp @@ -650,9 +650,8 @@ void tst_RenderControl::renderAndReadBackWithVulkanNative() } // now that everything is destroyed, get rid of the VkDevice too - vulkanInstance.resetDeviceFunctions(dev); df->vkDestroyDevice(dev, nullptr); - + vulkanInstance.resetDeviceFunctions(dev); #else QSKIP("No Vulkan support in Qt build, skipping native Vulkan test"); #endif