Skip to content

Commit

Permalink
Add 1.2.1 as valid Layer Manifest version
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-lunarg committed Jan 10, 2022
1 parent 3cae9d8 commit a72d5bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions loader/loader.c
Original file line number Diff line number Diff line change
Expand Up @@ -2561,8 +2561,8 @@ static VkResult loader_read_layer_json(const struct loader_instance *inst, struc
}

static inline bool is_valid_layer_json_version(const layer_json_version *layer_json) {
// Supported versions are: 1.0.0, 1.0.1, 1.1.0 - 1.1.2, and 1.2.0.
if ((layer_json->major == 1 && layer_json->minor == 2 && layer_json->patch < 1) ||
// Supported versions are: 1.0.0, 1.0.1, 1.1.0 - 1.1.2, and 1.2.0 - 1.2.1.
if ((layer_json->major == 1 && layer_json->minor == 2 && layer_json->patch < 2) ||
(layer_json->major == 1 && layer_json->minor == 1 && layer_json->patch < 3) ||
(layer_json->major == 1 && layer_json->minor == 0 && layer_json->patch < 2)) {
return true;
Expand Down

0 comments on commit a72d5bc

Please sign in to comment.