diff options
author | Niklas Haas <git@haasn.dev> | 2022-03-13 23:38:05 +0100 |
---|---|---|
committer | Niklas Haas <git@haasn.dev> | 2022-03-13 23:39:31 +0100 |
commit | 23e3be80dc590ba7a58066812f068c3031eb0b4a (patch) | |
tree | ee04b0b10287f76b7fa7ce7167fcc3bc45835bfe /video/out/vulkan | |
parent | 7ac4b7dfe75e3cd822c5ac2c89cff117394cad19 (diff) | |
download | mpv-23e3be80dc590ba7a58066812f068c3031eb0b4a.tar.bz2 mpv-23e3be80dc590ba7a58066812f068c3031eb0b4a.tar.xz |
vulkan: correctly inherit proc_addr pointer
As found out by @philipl, failing to pass this from the VkInstance to
the VkDevice is bad style. We might want to override the get_proc_addr
pointer in the future.
Diffstat (limited to 'video/out/vulkan')
-rw-r--r-- | video/out/vulkan/context.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/vulkan/context.c b/video/out/vulkan/context.c index def2ee3901..48b9306403 100644 --- a/video/out/vulkan/context.c +++ b/video/out/vulkan/context.c @@ -166,6 +166,7 @@ bool ra_vk_ctx_init(struct ra_ctx *ctx, struct mpvk_ctx *vk, assert(vk->vkinst); vk->vulkan = pl_vulkan_create(vk->pllog, &(struct pl_vulkan_params) { .instance = vk->vkinst->instance, + .get_proc_addr = vk->vkinst->get_proc_addr, .surface = vk->surface, .async_transfer = p->opts->async_transfer, .async_compute = p->opts->async_compute, |