Merge "Mark main window as not used if EGL window creation fails."