]> git.cworth.org Git - glaze/commit
Implement glXGetProcAdddress (and glXGetProcAddressARB)
authorCarl Worth <cworth@cworth.org>
Sat, 21 Sep 2013 18:34:47 +0000 (11:34 -0700)
committerCarl Worth <cworth@cworth.org>
Sat, 21 Sep 2013 22:00:56 +0000 (15:00 -0700)
commitcaa8d546aea211396beaebf6f811314ff5979c14
treeee1867a43db01d6fdd2c76e61e7acacac00010fd
parenta2d9fe4457823cb98df9bebdfe43f2f422546f63
Implement glXGetProcAdddress (and glXGetProcAddressARB)

Since applications can use these functions to find their symbols, it's
important that Glaze intercept these and ensure that the appropriate
wrapped symbols are returned.

This implementation allows the wrapping library to optionally
implement glXGetProcAddress itself. If it does, it's responsible for
implementing it correctly.

If the wrapping library does not implement glXGetProcAddress, then
Glaze's version will return a symbol from the wrapper if any
exists. Otherwise, it will defer to the underlying glXGetProcAddress
to do whatever it needs to do.
glaze-gl.c
specs/Makefile
specs/glx.def