mirror of https://gitlab.freedesktop.org/mesa/mesa
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:
parent
cc5e9def56
commit
4f310b04f0
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue