summaryrefslogtreecommitdiffstats
path: root/video/out
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.dev>2022-03-13 23:38:05 +0100
committerNiklas Haas <git@haasn.dev>2022-03-13 23:39:31 +0100
commit23e3be80dc590ba7a58066812f068c3031eb0b4a (patch)
treeee04b0b10287f76b7fa7ce7167fcc3bc45835bfe /video/out
parent7ac4b7dfe75e3cd822c5ac2c89cff117394cad19 (diff)
downloadmpv-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')
-rw-r--r--video/out/vulkan/context.c1
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,