summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/context.c
diff options
context:
space:
mode:
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);