An example of how to share a GL/GLES texture in EGL context between different processes by using DMA-BUF.
Detailed explanation is in this blog post.
Prerequisites:
- Linux OS (for dma-buf and unix domain sockets)
- EGL extensions:
- GLES extensions:
Build:
$ make
Run:
# Terminal 1
$ ./dmabufshare server
# Terminal 2
$ ./dmabufshare client