I've been hooking some methods within the OpenGL interface to add some additional functionality (in this case, convert OpenGL to a TCP/UDP protocol).
I've been using a simple shared library which I've built with GCC along with LD_Preload to modify the existing functions. This technique seems to be working great for some methods, and I have working versions for methods like dlsym and glBegin.
However, I'm having trouble hooking some of the glx functions, such as glXSwapBuffers
and glXMakeCurrent
.
Can anyone shed some light onto why I can hook the regular openGL methods but not glx?