Skip to content

Commit

Permalink
Log debug message when using conformance quirk
Browse files Browse the repository at this point in the history
  • Loading branch information
fredemmott committed Jul 22, 2024
1 parent 8a06552 commit fb7b138
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/APILayer/APILayer_loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,12 @@ static void EnumerateExtensions(OpenXRNext* oxr) {
const auto workAroundNonConformantImplementations
= Config::Quirk_Conformance_ExtensionCount
&& (nextResult == XR_ERROR_SIZE_INSUFFICIENT) && (extensionCount > 0);
if (workAroundNonConformantImplementations) {
DebugPrint(
"Buggy OpenXR runtime or other API layer; ignoring incorrect "
"XR_ERROR_SIZE_INSUFFICIENT response from "
"xrEnumerateInstanceExtensionProperties(nulllptr, 0, &count, nullptr)");
}
if (nextResult != XR_SUCCESS && !workAroundNonConformantImplementations) {
DebugPrint("Getting extension count failed: {}", nextResult);
return;
Expand Down

0 comments on commit fb7b138

Please sign in to comment.