Skip to content

Commit 8817420

Browse files
authored
Merge pull request #263 from ChristophHaag/print_expected
layers/core_validation: Actually print expected structure type
2 parents ce41708 + c35e3c3 commit 8817420

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
validation layer: Fix invalid struct type error message to show the expected
2+
type instead of the actual type.

src/api_layers/core_validation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ void InvalidStructureType(GenValidUsageXrInstanceInfo *instance_info, const std:
415415
oss_type << structure_name << " has an invalid XrStructureType ";
416416
oss_type << Uint32ToHexString(static_cast<uint32_t>(type));
417417
if (expected != 0) {
418-
oss_type << ", expected " << Uint32ToHexString(static_cast<uint32_t>(type));
418+
oss_type << ", expected " << Uint32ToHexString(static_cast<uint32_t>(expected));
419419
oss_type << " (" << expected_name << ")";
420420
}
421421
if (vuid != nullptr) {

0 commit comments

Comments
 (0)