summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2018-03-10 17:25:25 +0200
committerJari Vetoniemi <mailroxas@gmail.com>2018-03-10 17:25:25 +0200
commit3c82c28052cd138c1228065dacc019ba66ed664e (patch)
tree96c04f4631b4c82c44a0b9e1daae4f52765e44bc
parentb8be671580f22479d534e188aec9c81a01a3d5f8 (diff)
README: Add note about apitrace
-rw-r--r--README.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/README.md b/README.md
index 8c2edf2..8ee7d26 100644
--- a/README.md
+++ b/README.md
@@ -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...