Fixed handling of EGL context recreation