From 6c913411d39fd68eee1c1eeee7b6e81db9785fd1 Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Wed, 1 Jul 2009 17:34:38 +0100 Subject: st/wgl: dummy implementation of wgl swapinterval extension Required as some applications retrieve and call these functions regardless of the fact that we don't advertise the extension and further more the results of wglGetProcAddress are NULL. --- src/gallium/state_trackers/wgl/shared/stw_getprocaddress.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/gallium/state_trackers/wgl/shared/stw_getprocaddress.c') diff --git a/src/gallium/state_trackers/wgl/shared/stw_getprocaddress.c b/src/gallium/state_trackers/wgl/shared/stw_getprocaddress.c index 8cacbb8926..54cc038905 100644 --- a/src/gallium/state_trackers/wgl/shared/stw_getprocaddress.c +++ b/src/gallium/state_trackers/wgl/shared/stw_getprocaddress.c @@ -56,6 +56,10 @@ static const struct stw_extension_entry stw_extension_entries[] = { /* WGL_EXT_extensions_string */ STW_EXTENSION_ENTRY( wglGetExtensionsStringEXT ), + /* WGL_EXT_swap_interval */ + STW_EXTENSION_ENTRY( wglGetSwapIntervalEXT ), + STW_EXTENSION_ENTRY( wglSwapIntervalEXT ), + { NULL, NULL } }; -- cgit v1.2.3