Prabindh egl2

Commit for issue #2518, and discussion in #2442