MetaLayer version checking had paren in wrong place
authorCharles Giessen <charles@lunarg.com>
Fri, 11 Feb 2022 17:36:53 +0000 (10:36 -0700)
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>
Fri, 11 Feb 2022 18:16:10 +0000 (11:16 -0700)
Produced spurious warnings for versions that are correct.

loader/loader.c

index 8e55193..abde69c 100644 (file)
@@ -2192,7 +2192,7 @@ static VkResult loader_read_layer_json(const struct loader_instance *inst, struc
 
     override_paths = cJSON_GetObjectItem(layer_node, "override_paths");
     if (NULL != override_paths) {
-        if (version.major == 0 || (version.minor == 1 && version.patch) < 1 || version.minor == 0) {
+        if (version.major == 0 || (version.minor == 1 && version.patch < 1) || version.minor == 0) {
             loader_log(inst, VULKAN_LOADER_WARN_BIT, 0,
                        "Indicating meta-layer-specific override paths, but using older JSON file version.");
         }