Add compatibility EGL legacy Framebuffer

(cherry picked from commit 291ccc7c362f1567170a6837991e849779ac6b2a)