Sharing egl context between multiple threads

Hi,

Is it allowed to create egl context from main() and render from another thread, given the fact that the context handles are passed from main() to the thread's function?

Thanks.
iceman2012-07-30 19:14:03

Hi iceman,

This is completely fine - you must make sure to call “eglMakeCurrent” on the rendering thread though to make sure the context is bound to the correct thread.

Thanks,

Tobias