1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-10-04 21:56:32 +00:00

Default disable composition layer depth until i either figure out what i'm doing wrong, or steamvr fixes whatever they're doing wrong.

This commit is contained in:
madsbuvi 2021-03-10 17:05:23 +01:00
parent 3f2196fd8a
commit 4088fc0787
2 changed files with 8 additions and 3 deletions

View file

@ -55,8 +55,6 @@ namespace MWVR
ss << sourceLocation << ": OpenXR[Error: " << resultString << "][Thread: " << std::this_thread::get_id() << "]: " << originator;
#endif
Log(Debug::Error) << ss.str();
if (res == XR_ERROR_TIME_INVALID)
Log(Debug::Error) << "Breakpoint";
if (!sContinueOnErrors)
throw std::runtime_error(ss.str().c_str());
}
@ -246,12 +244,14 @@ namespace MWVR
void OpenXRPlatform::setupExtensions()
{
std::vector<const char*> optionalExtensions = {
XR_KHR_COMPOSITION_LAYER_DEPTH_EXTENSION_NAME,
XR_EXT_HP_MIXED_REALITY_CONTROLLER_EXTENSION_NAME,
XR_HTC_VIVE_COSMOS_CONTROLLER_INTERACTION_EXTENSION_NAME,
XR_HUAWEI_CONTROLLER_INTERACTION_EXTENSION_NAME
};
if (Settings::Manager::getBool("enable XR_KHR_composition_layer_depth", "VR Debug"))
optionalExtensions.emplace_back(XR_KHR_COMPOSITION_LAYER_DEPTH_EXTENSION_NAME);
if (Settings::Manager::getBool("enable XR_EXT_debug_utils", "VR Debug"))
optionalExtensions.emplace_back(XR_EXT_DEBUG_UTILS_EXTENSION_NAME);

View file

@ -1090,6 +1090,11 @@ continue on errors = true
# If true, enable openxr debug functionality via the XR_EXT_debug_utils extension
enable XR_EXT_debug_utils = false
# If true, enable composition layer depth functionality via the XR_KHR_composition_layer_depth extension
# This defaults to false because either my implementation is borked or some runtimes' are.
# It'll stay in settings jail until i figure it out.
enable XR_KHR_composition_layer_depth = false
# Enable/disable openxr debug message levels
XR_EXT_debug_utils message level verbose = false
XR_EXT_debug_utils message level info = true