summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/context.c
diff options
context:
space:
mode:
authorAnton Kindestam <antonki@kth.se>2019-09-28 10:26:23 +0200
committerJan Ekström <jeebjp@gmail.com>2019-09-28 14:10:01 +0300
commit62904203804afb614f4809495f1a1bb6e4006aaa (patch)
treeffeaceaebb78c664c9d183333836594b245ba1e1 /video/out/opengl/context.c
parent9538fb5a7af951e220f26c87c80aaaa2a5cfbc67 (diff)
downloadmpv-62904203804afb614f4809495f1a1bb6e4006aaa.tar.bz2
mpv-62904203804afb614f4809495f1a1bb6e4006aaa.tar.xz
vo: make swapchain-depth option generic for all VOs
In preparation for making vo_drm able to use swapchain-depth
Diffstat (limited to 'video/out/opengl/context.c')
-rw-r--r--video/out/opengl/context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/opengl/context.c b/video/out/opengl/context.c
index 9b3dd6a827..530fc54a85 100644
--- a/video/out/opengl/context.c
+++ b/video/out/opengl/context.c
@@ -306,7 +306,7 @@ void ra_gl_ctx_swap_buffers(struct ra_swapchain *sw)
check_pattern(p, step);
}
- while (p->num_vsync_fences >= sw->ctx->opts.swapchain_depth) {
+ while (p->num_vsync_fences >= sw->ctx->vo->opts->swapchain_depth) {
gl->ClientWaitSync(p->vsync_fences[0], GL_SYNC_FLUSH_COMMANDS_BIT, 1e9);
gl->DeleteSync(p->vsync_fences[0]);
MP_TARRAY_REMOVE_AT(p->vsync_fences, p->num_vsync_fences, 0);