st/wgl: check if WGL_SWAP_INTERVAL is defined in wglSwapIntervalEXT()
authorBrian Paul <brianp@vmware.com>
Fri, 30 Mar 2018 20:44:50 +0000 (14:44 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 30 Mar 2018 20:44:50 +0000 (14:44 -0600)
commitc8906b845928955679b289dbc8e7a153071dffa7
treefc5fba4f5aee5d8bd48574acc43b6e215e449f8c
parent1bf201ddce12adfd5b06e46b8111b89300d58b4e
st/wgl: check if WGL_SWAP_INTERVAL is defined in wglSwapIntervalEXT()

This allows the WGL_SWAP_INTERVAL env var to override any application
calls to wglSwapIntervalEXT().  Useful for debugging, or to set the
interval to zero to effectively disable the swap interval.

Note: we also rename the previous instance of SVGA_SWAP_INTERVAL to
WGL_SWAP_INTERVAL since this is a WGL feature and not related to the
svga driver.

Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/gallium/state_trackers/wgl/stw_device.c
src/gallium/state_trackers/wgl/stw_ext_swapinterval.c