mirror of https://github.com/mpv-player/mpv
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.
This commit is contained in:
parent
7ac4b7dfe7
commit
23e3be80dc
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue