add egl support