diff options
author | Jari Vetoniemi <mailroxas@gmail.com> | 2018-03-10 17:25:25 +0200 |
---|---|---|
committer | Jari Vetoniemi <mailroxas@gmail.com> | 2018-03-10 17:25:25 +0200 |
commit | 3c82c28052cd138c1228065dacc019ba66ed664e (patch) | |
tree | 96c04f4631b4c82c44a0b9e1daae4f52765e44bc | |
parent | b8be671580f22479d534e188aec9c81a01a3d5f8 (diff) |
README: Add note about apitrace
-rw-r--r-- | README.md | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -97,6 +97,18 @@ for all the functions that will be implemented. As for implementing stuff, people should only implement the stuff some application needs. Lets not implement anything that doesn't get used. +## Debugging with apitrace + +Since apitrace and similiar OpenGL debuggers redirect the dlopen calls, +you have to `LD_PRELOAD` the `runtime/libEGL.so` while running apitrace. +`runtime/libEGL.so` is responsible for wrapping `eglGetDisplay` and +`eglCreateWindowSurface` functions, so that valid native handles are +passed to the real system EGL implementation. + +``` +LD_PRELOAD=runtime/libEGL.so apitrace -a egl ./app bioniclib.so +``` + ## Q & A ### Why? I still don't get what this is for... |