Eric Anholt
0983996e49
Fix calling new entrypoints from within glBegin()/glEnd().
11 years ago
Eric Anholt
1cb041fbaa
Fix a compiler warning in the previous commit.
11 years ago
Eric Anholt
8bb5a2545e
Fix extension detection on core GL contexts.
...
The nasty old strings were deprecated.
11 years ago
Eric Anholt
0270c80008
Add support for EGL.
...
This totally replaces the getprocaddress and dlsym code, which was
basically just stubs up until now. The is_glx/is_egl() is also
dropped -- they weren't doing anything, and the only false answer they
could give is if the dlopen were to fail.
11 years ago
Eric Anholt
de70a2a0ab
Fix a similar bug to HEAD~2, this time in epoxy_has_glx_extension().
11 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.
11 years ago
Eric Anholt
5f60534bac
Fix up an unfinished comment
11 years ago
Eric Anholt
a82e54aafa
Make a table full of strings describing our providers.
...
By having shared code to print the names and a shared table of what
the names are, this reduces the built stripped size of the library by
80k.
11 years ago
Eric Anholt
8139c7c489
Actually implement GLX version detection.
11 years ago
Eric Anholt
ed938dc4c5
Make a few more public functions actually public.
11 years ago
Eric Anholt
66d7b9fb02
Fix the version detection for GL < 3.
...
Those nice enums came late in the GL spec. This code is copied from
piglit, by Matt Turner in 2012.
11 years ago
Eric Anholt
a1d555e446
Fix a copy-and-paste mistake in getting GL version
11 years ago
Eric Anholt
e1a183c4eb
Remove accidentally committed debug printf.
11 years ago
Eric Anholt
69241485d1
Fix test for is_desktop_gl.
...
We're looking for "return true if no ES", and strcmp returns != 0 if
not match (the ES string).
11 years ago
Eric Anholt
4c9b7e63b1
Consistently use 4-space indents.
11 years ago
Eric Anholt
a909eb4a22
Add the generator and build infrastructure.
...
Not actually working yet, but it's a snapshot to start from.
11 years ago