diff options
Diffstat (limited to 'tests/auto/quick/qquickrendercontrol/tst_qquickrendercontrol.cpp')
-rw-r--r-- | tests/auto/quick/qquickrendercontrol/tst_qquickrendercontrol.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickrendercontrol/tst_qquickrendercontrol.cpp b/tests/auto/quick/qquickrendercontrol/tst_qquickrendercontrol.cpp index 4bf48f5a58..8f026199ea 100644 --- a/tests/auto/quick/qquickrendercontrol/tst_qquickrendercontrol.cpp +++ b/tests/auto/quick/qquickrendercontrol/tst_qquickrendercontrol.cpp @@ -34,6 +34,7 @@ #include <QQuickRenderControl> #include <QQuickRenderTarget> #include <QQuickGraphicsDevice> +#include <QQuickGraphicsConfiguration> #include <QQuickItem> #include <QQmlEngine> #include <QQmlComponent> @@ -98,6 +99,7 @@ void tst_RenderControl::initTestCase() #if QT_CONFIG(vulkan) vulkanInstance.setLayers({ "VK_LAYER_LUNARG_standard_validation" }); + vulkanInstance.setExtensions(QQuickGraphicsConfiguration::preferredInstanceExtensions()); vulkanInstance.create(); // may fail, that's sometimes ok, we'll check for it later #endif |