]> git.cworth.org Git - fips/commit
Add dynamic dispatch for any calls to OpenGL functions.
authorCarl Worth <cworth@cworth.org>
Sat, 22 Jun 2013 00:10:03 +0000 (17:10 -0700)
committerCarl Worth <cworth@cworth.org>
Mon, 24 Jun 2013 20:31:49 +0000 (13:31 -0700)
commit5569357a9fc7189c2bae43773f44ba576583ec2b
treeedc9259960386ab357cc443a6b6a2f191a07d80c
parenta9a3c0277f608fcfc7c92a93796db001d36914d4
Add dynamic dispatch for any calls to OpenGL functions.

Previously, fips code was making direct calls to OpenGL functions,
(such as glGenQueries, glBeinQuery, etc. within metrics.c). Some
OpenGL implementations do not export these symbols directly,
(expecting the application to instead look the symbols up via a call
to glXGetProcAddressARB or eglGetProcAddress).

The new fips-dispatch code added here does precisely that, (and adds
wrapper for both glXMakeCurrent and eglMakeCurrent in order to know
which GetProcAddress function should be called).

The dispatch code follows the model of piglit-dispatch, (available
under the same license as fips). Thanks to Eric Anholt for suggesting
following the same approach as piglit.
Makefile.local
eglwrap.c
fips-dispatch.c [new file with mode: 0644]
fips-dispatch.h [new file with mode: 0644]
fips.h
glwrap.c
glxwrap.c
metrics.c