diff options
author | Dudemanguy <random342@airmail.cc> | 2023-11-06 16:35:04 -0600 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-11-07 00:52:46 +0000 |
commit | 2872e929bbe25d845e1aa08a5a366cdc660bb4d0 (patch) | |
tree | c48d9014279489edb5352c9e711b6ec40ec8ac0c /video/out/x11_common.c | |
parent | cf69fa03ca5c5dae0db79c6c96b148088180936a (diff) | |
download | mpv-2872e929bbe25d845e1aa08a5a366cdc660bb4d0.tar.bz2 mpv-2872e929bbe25d845e1aa08a5a366cdc660bb4d0.tar.xz |
present_sync: only save as many entries as the swapchain depth
Saving more than the swapchain depth is just wasteful. We can just save
a copy of the vo_opts here and check the value whenever we're updating
values.
Diffstat (limited to 'video/out/x11_common.c')
-rw-r--r-- | video/out/x11_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/x11_common.c b/video/out/x11_common.c index f0f859d6f6..9be2e9b93d 100644 --- a/video/out/x11_common.c +++ b/video/out/x11_common.c @@ -626,7 +626,7 @@ bool vo_x11_init(struct vo *vo) x11_error_output = x11->log; XSetErrorHandler(x11_errorhandler); - x11->present = mp_present_initialize(x11, VO_MAX_SWAPCHAIN_DEPTH); + x11->present = mp_present_initialize(x11, x11->opts, VO_MAX_SWAPCHAIN_DEPTH); dispName = XDisplayName(NULL); |