diff --git a/changes/sdk/pr.475.gh.OpenXR-SDK-Source.md b/changes/sdk/pr.475.gh.OpenXR-SDK-Source.md new file mode 100644 index 000000000..c56c9ba83 --- /dev/null +++ b/changes/sdk/pr.475.gh.OpenXR-SDK-Source.md @@ -0,0 +1 @@ +Fix: Do not load all Android app-supplied layers as explicit, but rather as their actual type. diff --git a/src/loader/manifest_file.cpp b/src/loader/manifest_file.cpp index 0caf05c93..ca212d343 100644 --- a/src/loader/manifest_file.cpp +++ b/src/loader/manifest_file.cpp @@ -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)