diff options
author | Eric Anholt <eric@anholt.net> | 2013-12-17 14:32:18 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2013-12-17 15:08:02 -0800 |
commit | 9bc909f5a7024ca3c2b5aa2fc26b19e8de9c7cf0 (patch) | |
tree | 0728cce0be62976c66f9894c51929866f1d35a10 /src/dispatch_wgl.c | |
parent | 3ae4726cdbb0fccdb02bcdba07662fe6f6a15589 (diff) | |
download | libepoxy-9bc909f5a7024ca3c2b5aa2fc26b19e8de9c7cf0.tar.gz |
win32: Convert the API to being based on function pointers, like Linux.
For performance, I want to be able to make single-context (well,
single-pixel-format-and-device) apps be able to directly call GL
functions through function pointers. Bake that into the ABI now so I
can get a release out the door and fix this up later.
This also fixes the lack of __stdcall annotation on the
PFNWHATEVERPROC typedefs.
Diffstat (limited to 'src/dispatch_wgl.c')
-rw-r--r-- | src/dispatch_wgl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dispatch_wgl.c b/src/dispatch_wgl.c index a0b7277..1156419 100644 --- a/src/dispatch_wgl.c +++ b/src/dispatch_wgl.c @@ -176,3 +176,7 @@ WRAPPER(epoxy_wglMakeAssociatedContextCurrentAMD)(HGLRC hglrc) return ret; } +PUBLIC PFNWGLMAKECURRENTPROC epoxy_wglMakeCurrent = epoxy_wglMakeCurrent_wrapped; +PUBLIC PFNWGLMAKECONTEXTCURRENTEXTPROC epoxy_wglMakeContextCurrentEXT = epoxy_wglMakeContextCurrentEXT_wrapped; +PUBLIC PFNWGLMAKECONTEXTCURRENTARBPROC epoxy_wglMakeContextCurrentARB = epoxy_wglMakeContextCurrentARB_wrapped; +PUBLIC PFNWGLMAKEASSOCIATEDCONTEXTCURRENTAMDPROC epoxy_wglMakeAssociatedContextCurrentEXT = epoxy_wglMakeAssociatedContextCurrentAMD_wrapped; |