summaryrefslogtreecommitdiffstats
path: root/tests/manual/rhi/offscreen
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2023-04-13 14:07:48 +0200
committerLaszlo Agocs <laszlo.agocs@qt.io>2023-04-18 13:23:48 +0200
commit1645ce9a4aa39e43d4569eaa7f63225c5116fea4 (patch)
tree982f27b6388cf94c71fab66f98e8be56f55e80c5 /tests/manual/rhi/offscreen
parent24fe86ebe77e2cc6e93487a3c78bc5c22544ee79 (diff)
rhi: Fix offscreen manual test's Vulkan init
Pick-to: 6.5 Change-Id: Iaf7da78fd0c1c1265b05bfd4c7ced5d94ae963fe Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'tests/manual/rhi/offscreen')
-rw-r--r--tests/manual/rhi/offscreen/offscreen.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/manual/rhi/offscreen/offscreen.cpp b/tests/manual/rhi/offscreen/offscreen.cpp
index b36c3b3667..244e809156 100644
--- a/tests/manual/rhi/offscreen/offscreen.cpp
+++ b/tests/manual/rhi/offscreen/offscreen.cpp
@@ -137,6 +137,7 @@ int main(int argc, char **argv)
if (graphicsApi == Vulkan) {
QLoggingCategory::setFilterRules(QStringLiteral("qt.vulkan=true"));
inst.setLayers({ "VK_LAYER_KHRONOS_validation" });
+ inst.setExtensions(QRhiVulkanInitParams::preferredInstanceExtensions());
if (inst.create()) {
QRhiVulkanInitParams params;
params.inst = &inst;