removed all EGL code from core