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/opengl/context_drm_egl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'video/out/opengl/context_drm_egl.c') diff --git a/video/out/opengl/context_drm_egl.c b/video/out/opengl/context_drm_egl.c index fcc31df682..736db7a4ec 100644 --- a/video/out/opengl/context_drm_egl.c +++ b/video/out/opengl/context_drm_egl.c @@ -603,7 +603,8 @@ static void drm_egl_swap_buffers(struct ra_swapchain *sw) enqueue_bo(ctx, new_bo); new_fence(ctx); - while (drain || p->gbm.num_bos > ctx->opts.swapchain_depth || !gbm_surface_has_free_buffers(p->gbm.surface)) { + while (drain || p->gbm.num_bos > ctx->vo->opts->swapchain_depth || + !gbm_surface_has_free_buffers(p->gbm.surface)) { if (p->waiting_for_flip) { wait_on_flip(ctx); swapchain_step(ctx); -- cgit v1.2.3