wgl: The default swap interval is supposed to be 1

Per WGL_EXT_swap_control:
> The default swap interval is 1.

Reviewed-by: Giancarlo Devich <gdevich@microsoft.com>
Reviewed-by: Sil Vilerino <sivileri@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28471>
This commit is contained in:
Jesse Natalie 2024-03-29 09:08:43 -07:00 committed by Marge Bot
parent cc5e9def56
commit 4f310b04f0
1 changed files with 3 additions and 0 deletions

View File

@ -161,6 +161,9 @@ stw_init(const struct stw_winsys *stw_winsys)
goto error1;
}
/* Per WGL_EXT_swap_control, the default swap interval is 1. */
stw_dev->swap_interval = 1;
/* env var override for WGL_EXT_swap_control, useful for testing/debugging */
const char *s = os_get_option("WGL_SWAP_INTERVAL");
if (s) {