Imagination PowerVR SDK Blog

Sharing egl context between multiple threads


#1
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

#2

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