From d6c74a343f13521feb8f5b588a0b244919442aef Mon Sep 17 00:00:00 2001 From: Christoph Haag Date: Tue, 22 Jun 2021 01:14:42 +0200 Subject: [PATCH 1/2] layers/core_validation: Actually print expected structure type --- src/api_layers/core_validation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api_layers/core_validation.cpp b/src/api_layers/core_validation.cpp index 76429fc02..a336d6fe0 100644 --- a/src/api_layers/core_validation.cpp +++ b/src/api_layers/core_validation.cpp @@ -415,7 +415,7 @@ void InvalidStructureType(GenValidUsageXrInstanceInfo *instance_info, const std: oss_type << structure_name << " has an invalid XrStructureType "; oss_type << Uint32ToHexString(static_cast(type)); if (expected != 0) { - oss_type << ", expected " << Uint32ToHexString(static_cast(type)); + oss_type << ", expected " << Uint32ToHexString(static_cast(expected)); oss_type << " (" << expected_name << ")"; } if (vuid != nullptr) { From c35e3c393a5b3ae59f3f3029feb4b8e28f1d5f8d Mon Sep 17 00:00:00 2001 From: Christoph Haag Date: Mon, 28 Jun 2021 23:48:40 +0200 Subject: [PATCH 2/2] add changelog for PR 263 --- changes/sdk/pr.263.gh.OpenXR-SDK-Source.md | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 changes/sdk/pr.263.gh.OpenXR-SDK-Source.md diff --git a/changes/sdk/pr.263.gh.OpenXR-SDK-Source.md b/changes/sdk/pr.263.gh.OpenXR-SDK-Source.md new file mode 100644 index 000000000..b2cf6bc58 --- /dev/null +++ b/changes/sdk/pr.263.gh.OpenXR-SDK-Source.md @@ -0,0 +1,2 @@ +validation layer: Fix invalid struct type error message to show the expected +type instead of the actual type.