Skip to content

Commit

Permalink
Fix all API layers being loaded as explicit on Android
Browse files Browse the repository at this point in the history
  • Loading branch information
pembem22 authored and rpavlik committed May 10, 2024
1 parent 9e9d023 commit 2e2c7d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions changes/sdk/pr.475.gh.OpenXR-SDK-Source.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix: Do not load all Android app-supplied layers as explicit, but rather as their actual type.
3 changes: 1 addition & 2 deletions src/loader/manifest_file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -773,8 +773,7 @@ void ApiLayerManifestFile::AddManifestFilesAndroid(const std::string &openxr_com
}
std::istringstream json_stream(std::string{buf, length});

CreateIfValid(ManifestFileType::MANIFEST_TYPE_EXPLICIT_API_LAYER, filename, json_stream,
&ApiLayerManifestFile::LocateLibraryInAssets, manifest_files);
CreateIfValid(type, filename, json_stream, &ApiLayerManifestFile::LocateLibraryInAssets, manifest_files);
}
}
#endif // defined(XR_USE_PLATFORM_ANDROID) && defined(XR_KHR_LOADER_INIT_SUPPORT)
Expand Down

0 comments on commit 2e2c7d5

Please sign in to comment.