diff --git a/layers/unique_objects.cpp b/layers/unique_objects.cpp index 30077e74d94db670bc8ac1193f4ce1618e54969e..f6d78fef216f248aa4915250475a9126a7956b28 100644 --- a/layers/unique_objects.cpp +++ b/layers/unique_objects.cpp @@ -276,9 +276,6 @@ static inline PFN_vkVoidFunction layer_intercept_proc(const char *name) { if (0 == strcmp(name, "vk_layerGetPhysicalDeviceProcAddr")) { return (PFN_vkVoidFunction)GetPhysicalDeviceProcAddr; } - if (0 == strcmp(name, "vk_layerGetPhysicalDeviceProcAddr")) { - return (PFN_vkVoidFunction)GetPhysicalDeviceProcAddr; - } return NULL; }