fix a bug recently introduced where EGL couldn't be initialized again after it had been terminated once
2 files changed