Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9a86ad29 authored by Jesse Hall's avatar Jesse Hall
Browse files

libvulkan: Remove dead special cases in GetDeviceProcAddr

Change-Id: I58c5cad288f3d96acc9903a2323ec9fcf21798fd
(cherry picked from commit 18f7ae3776050529c3c244e639eb5095808963d9)
parent 2818f93c
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -1058,12 +1058,6 @@ PFN_vkVoidFunction GetDeviceProcAddr(VkDevice device, const char* name) {
    if (strcmp(name, "vkDestroyDevice") == 0) {
        return reinterpret_cast<PFN_vkVoidFunction>(DestroyDevice);
    }
    // For special-case functions we always return the loader entry
    if (strcmp(name, "vkGetDeviceQueue") == 0 ||
        strcmp(name, "vkCreateCommandBuffer") == 0 ||
        strcmp(name, "vkDestroyDevice") == 0) {
        return GetGlobalDeviceProcAddr(name);
    }
    return GetSpecificDeviceProcAddr(GetVtbl(device), name);
}