From 62904203804afb614f4809495f1a1bb6e4006aaa Mon Sep 17 00:00:00 2001 From: Anton Kindestam Date: Sat, 28 Sep 2019 10:26:23 +0200 Subject: vo: make swapchain-depth option generic for all VOs In preparation for making vo_drm able to use swapchain-depth --- video/out/vulkan/context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video/out/vulkan/context.c') diff --git a/video/out/vulkan/context.c b/video/out/vulkan/context.c index f3db02f5cb..4ff48ed250 100644 --- a/video/out/vulkan/context.c +++ b/video/out/vulkan/context.c @@ -179,7 +179,7 @@ bool ra_vk_ctx_init(struct ra_ctx *ctx, struct mpvk_ctx *vk, struct pl_vulkan_swapchain_params params = { .surface = vk->surface, .present_mode = preferred_mode, - .swapchain_depth = ctx->opts.swapchain_depth, + .swapchain_depth = ctx->vo->opts->swapchain_depth, }; if (p->opts->swap_mode >= 0) // user override -- cgit v1.2.3