mirror of https://github.com/microsoft/vcpkg.git
16 lines
967 B
Diff
16 lines
967 B
Diff
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);
|