From ac75151449b4994831cde109e53e5c9a8c81a6bf Mon Sep 17 00:00:00 2001 From: Ada Date: Thu, 12 Dec 2024 11:27:22 +1000 Subject: [PATCH] Revert OpenVrDisplayPlugin getPlayAreaRect hack --- plugins/openvr/src/OpenVrDisplayPlugin.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/plugins/openvr/src/OpenVrDisplayPlugin.cpp b/plugins/openvr/src/OpenVrDisplayPlugin.cpp index 2e275e7dff..b5c1f713e7 100644 --- a/plugins/openvr/src/OpenVrDisplayPlugin.cpp +++ b/plugins/openvr/src/OpenVrDisplayPlugin.cpp @@ -469,7 +469,6 @@ bool OpenVrDisplayPlugin::internalActivate() { vr::VRCompositor()->ForceInterleavedReprojectionOn(true); } -#if 0 // set up default sensor space such that the UI overlay will align with the front of the room. auto chaperone = vr::VRChaperone(); if (chaperone) { @@ -486,7 +485,6 @@ bool OpenVrDisplayPlugin::internalActivate() { qDebug() << "OpenVR: error could not get chaperone pointer"; #endif } -#endif if (_threadedSubmit) { _submitThread = std::make_shared(*this); @@ -777,9 +775,6 @@ QString OpenVrDisplayPlugin::getPreferredAudioOutDevice() const { } QRectF OpenVrDisplayPlugin::getPlayAreaRect() { -#if 1 - return QRectF(); -#else auto chaperone = vr::VRChaperone(); if (!chaperone) { qWarning() << "No chaperone"; @@ -811,7 +806,6 @@ QRectF OpenVrDisplayPlugin::getPlayAreaRect() { glm::vec2 dimensions = glm::vec2(maxXZ.x - minXZ.x, maxXZ.z - minXZ.z); return QRectF(center.x, center.y, dimensions.x, dimensions.y); -#endif } DisplayPlugin::StencilMaskMeshOperator OpenVrDisplayPlugin::getStencilMaskMeshOperator() {