Bakcport of EGL Legacy FB patch

Signed-off-by: zombah <zombah@gmail.com>