aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/qtquick3d/android-openxr-vulkan.diff
blob: 9e98d08b25d804fa741c724170aae6dce1c3f5d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/src/xr/quick3dxr/openxr/qquick3dxrmanager_openxr.cpp b/src/xr/quick3dxr/openxr/qquick3dxrmanager_openxr.cpp
index f0d2963..8db003b 100644
--- a/src/xr/quick3dxr/openxr/qquick3dxrmanager_openxr.cpp
+++ b/src/xr/quick3dxr/openxr/qquick3dxrmanager_openxr.cpp
@@ -2036,8 +2036,10 @@ XrResult QQuick3DXrManagerPrivate::createXrInstance()
 
     auto graphicsAPI = QQuickWindow::graphicsApi();
     if (graphicsAPI == QSGRendererInterface::Vulkan) {
+#ifdef XR_USE_GRAPHICS_API_VULKAN
         if (isExtensionSupported(XR_FB_SWAPCHAIN_UPDATE_STATE_VULKAN_EXTENSION_NAME, extensionProperties))
             enabledExtensions.append(XR_FB_SWAPCHAIN_UPDATE_STATE_VULKAN_EXTENSION_NAME);
+#endif
     } else if (graphicsAPI == QSGRendererInterface::OpenGL) {
         if (isExtensionSupported(XR_FB_SWAPCHAIN_UPDATE_STATE_OPENGL_ES_EXTENSION_NAME, extensionProperties))
             enabledExtensions.append(XR_FB_SWAPCHAIN_UPDATE_STATE_OPENGL_ES_EXTENSION_NAME);