Skip to content

Commit

Permalink
vulkan: remove accidental load of vkDestroyInstance
Browse files Browse the repository at this point in the history
This was mistakenly added to the list of device-level function pointers,
which doesn't even make any sense as it's not a device-level function.

Caught by a warning in new versions of the vulkan validation layers,
since the result is always NULL.
  • Loading branch information
haasn committed Jun 5, 2024
1 parent 241157b commit 79a2efc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/vulkan/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ struct vk_ctx {
PL_VK_FUN(DestroyFramebuffer);
PL_VK_FUN(DestroyImage);
PL_VK_FUN(DestroyImageView);
PL_VK_FUN(DestroyInstance);
PL_VK_FUN(DestroyPipeline);
PL_VK_FUN(DestroyPipelineCache);
PL_VK_FUN(DestroyPipelineLayout);
Expand Down
1 change: 0 additions & 1 deletion src/vulkan/context.c
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,6 @@ static const struct vk_fun vk_dev_funs[] = {
PL_VK_DEV_FUN(DestroyFramebuffer),
PL_VK_DEV_FUN(DestroyImage),
PL_VK_DEV_FUN(DestroyImageView),
PL_VK_DEV_FUN(DestroyInstance),
PL_VK_DEV_FUN(DestroyPipeline),
PL_VK_DEV_FUN(DestroyPipelineCache),
PL_VK_DEV_FUN(DestroyPipelineLayout),
Expand Down

0 comments on commit 79a2efc

Please sign in to comment.