From cebc8ebed590c06c6da1416f051ec64af59a481f Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Tue, 30 Mar 2021 21:17:10 +0100 Subject: [PATCH] st/oxr: No longer need to work around depth Swapchain on Unreal --- doc/changes/state_trackers/mr.740.md | 1 + src/xrt/state_trackers/oxr/oxr_instance.c | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 doc/changes/state_trackers/mr.740.md diff --git a/doc/changes/state_trackers/mr.740.md b/doc/changes/state_trackers/mr.740.md new file mode 100644 index 000000000..6af700fe9 --- /dev/null +++ b/doc/changes/state_trackers/mr.740.md @@ -0,0 +1 @@ +OpenXR: Unreal Engine 4 depth buffer quirk no longer needed. diff --git a/src/xrt/state_trackers/oxr/oxr_instance.c b/src/xrt/state_trackers/oxr/oxr_instance.c index 50abe2c66..088d498e6 100644 --- a/src/xrt/state_trackers/oxr/oxr_instance.c +++ b/src/xrt/state_trackers/oxr/oxr_instance.c @@ -160,12 +160,15 @@ detect_engine(struct oxr_logger *log, struct oxr_instance *inst, const XrInstanc static void apply_quirks(struct oxr_logger *log, struct oxr_instance *inst) { +#if 0 + // This is no longer needed. if (starts_with("UnrealEngine", inst->appinfo.detected.engine.name) && // inst->appinfo.detected.engine.major == 4 && // inst->appinfo.detected.engine.minor <= 27 && // inst->appinfo.detected.engine.patch <= 0) { inst->quirks.disable_vulkan_format_depth_stencil = true; } +#endif } XrResult