Skip to content

Commit d6c74a3

Browse files
committed
layers/core_validation: Actually print expected structure type
1 parent ce41708 commit d6c74a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)