Remove redundant code
authorWaffl3x <waffl3x@protonmail.com>
Fri, 11 Nov 2022 06:06:47 +0000 (01:06 -0500)
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>
Fri, 11 Nov 2022 17:37:56 +0000 (10:37 -0700)
loader_make_version recently was changed to zero out the patch version, explicitly doing it is no longer necessary.

loader/trampoline.c

index b8d76322a03a22514ed11798ebc1406e8f4db22d..9066a087804e4bbd76a55626a22fba221625e061 100644 (file)
@@ -459,8 +459,6 @@ LOADER_EXPORT VKAPI_ATTR VkResult VKAPI_CALL vkCreateInstance(const VkInstanceCr
         ptr_instance->app_api_version = LOADER_VERSION_1_0_0;
     } else {
         ptr_instance->app_api_version = loader_make_version(pCreateInfo->pApplicationInfo->apiVersion);
-        // zero out the patch version since we don't actually want to compare with it
-        ptr_instance->app_api_version.patch = 0;
     }
 
     // Look for one or more VK_EXT_debug_report or VK_EXT_debug_utils create info structures