add in legacy egl patch