aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>2020-05-19 15:42:17 +0200
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>2020-05-19 16:10:57 +0200
commit76e6f8e9979dec8f5c37580aa3d8bffa5ffef2dd (patch)
treef5d14c7c57abd454ba551012418bfcdb09a61f7c /tests
parent69133908c13c07f4b4c8ffa4d868dd40663f9d20 (diff)
Fix assert in tst_QQuickRenderControl
We should not call device functions after resetting them. Change-Id: I0470792457eff070ba3aeb767f5f5be622ebda42 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/quick/qquickrendercontrol/tst_qquickrendercontrol.cpp3
1 files changed, 1 insertions, 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