summaryrefslogtreecommitdiff
path: root/src/dispatch_wgl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dispatch_wgl.c')
-rw-r--r--src/dispatch_wgl.c50
1 files changed, 50 insertions, 0 deletions
diff --git a/src/dispatch_wgl.c b/src/dispatch_wgl.c
index 0161ad4..743136e 100644
--- a/src/dispatch_wgl.c
+++ b/src/dispatch_wgl.c
@@ -117,3 +117,53 @@ DllMain(HINSTANCE dll, DWORD reason, LPVOID reserved)
return TRUE;
}
+
+WRAPPER_VISIBILITY BOOL
+WRAPPER(epoxy_wglMakeCurrent)(HDC hdc, HGLRC hglrc)
+{
+ BOOL ret = epoxy_wglMakeCurrent_unwrapped(hdc, hglrc);
+
+ reset_dispatch_table();
+
+ return ret;
+}
+
+
+WRAPPER_VISIBILITY BOOL
+WRAPPER(epoxy_wglMakeContextCurrentARB)(HDC hDrawDC,
+ HDC hReadDC,
+ HGLRC hglrc)
+{
+ BOOL ret = epoxy_wglMakeContextCurrentARB_unwrapped(hDrawDC, hReadDC,
+ hglrc);
+
+ reset_dispatch_table();
+
+ return ret;
+}
+
+
+WRAPPER_VISIBILITY BOOL
+WRAPPER(epoxy_wglMakeContextCurrentEXT)(HDC hDrawDC,
+ HDC hReadDC,
+ HGLRC hglrc)
+{
+ BOOL ret = epoxy_wglMakeContextCurrentEXT_unwrapped(hDrawDC, hReadDC,
+ hglrc);
+
+ reset_dispatch_table();
+
+ return ret;
+}
+
+
+WRAPPER_VISIBILITY BOOL
+WRAPPER(epoxy_wglMakeAssociatedContextCurrentAMD)(HGLRC hglrc)
+{
+ BOOL ret = epoxy_wglMakeAssociatedContextCurrentAMD_unwrapped(hglrc);
+
+ reset_dispatch_table();
+
+ return ret;
+}
+