Yaron Cohen-Tal
44d51f2844
Fix support for a static build of Epoxy. Add support building and running tests with CMake. Add support for linking with the static run-time library with MSVC.
10 years ago
Yaron Cohen-Tal
64e2ee2ca8
Fix a bug in which "DllMain" isn't called when using the static version of Epoxy in Windows.
10 years ago
Yaron Cohen-Tal
90c6158d61
Unite defenitions "PUBLIC" and "EPOXY_IMPORTEXPORT" and add it where appropriate. Fix tests build errors.
10 years ago
Chun-wei Fan
7d5e8e9d56
Put the callspec after the return type for MSVC.
...
Visual Studio does not like __stdcall before the return type, which is
what GLAPIENTRY and EPOXY_CALLSPEC expands to on Windows.
10 years ago
Eric Anholt
135f7bf104
wgl: Fix an extra break statement.
...
This would have leaked our TLS indices on process exit.
Fixes #32
11 years ago
Eric Anholt
3e09de7550
win32: Delay using dispatch tables until the second MakeCurrent.
...
Fixes #11 .
11 years ago
Eric Anholt
9bc909f5a7
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.
12 years ago
Eric Anholt
3ae4726cdb
win32: Expose the dispatch table reset funtion in the public API.
...
Fixes #2 .
12 years ago
Eric Anholt
c4214a39f4
win32: Reset all dispatch tables to re-resolve on any wglMakeCurrent.
12 years ago
Eric Anholt
9a7be0784f
win32: Use thread local storage to get us a dispatch table per thread.
12 years ago
Eric Anholt
1d746bfeb2
Add dispatch generation for wgl.
...
This is very poorly tested at this point, but survives a simple testcase.
12 years ago
Eric Anholt
60ea7c38a2
Move GLX/EGL dispatch code using those API types to separate files.
...
The dlopen bits are left in place, but the functions required the
types, and in the case of EGL, the types require that the platform
header actually exists.
12 years ago
Eric Anholt
de70a2a0ab
Fix a similar bug to HEAD~2, this time in epoxy_has_glx_extension().
12 years ago
Eric Anholt
7603c144db
Add a failing testcase for the public API of epoxy_has_glx_extension.
12 years ago
Eric Anholt
0f67bf3f11
Fix bug in public entrypoint for epoxy_glx_version()
...
Unfortunately, for GLX 1.4+ entrypoints (just glxGetProcAddress
currently) or extensions, if there isn't a context bound then we don't
have a dpy and screen available to provide useful debug messages. Oh
well.
12 years ago
Eric Anholt
14f822ee91
Add a testcase for a bug in the public API.
12 years ago
Eric Anholt
04cf940e1b
Add an initial testsuite for GLX API.
12 years ago
Eric Anholt
a909eb4a22
Add the generator and build infrastructure.
...
Not actually working yet, but it's a snapshot to start from.
12 years ago