Restore exit after load command line flag.

Also updates glutin with a crash fix that was exposed by this patch.
This commit is contained in:
Glenn Watson 2015-07-20 08:28:19 +10:00
parent 2f4bdc6ad6
commit 4f28c93f40
6 changed files with 24 additions and 12 deletions

View file

@ -183,7 +183,8 @@ impl<'a> LayoutContext<'a> {
Err(state) => {
// If we are emitting an output file, then we need to block on
// image load or we risk emitting an output file missing the image.
let is_sync = opts::get().output_file.is_some();
let is_sync = opts::get().output_file.is_some() ||
opts::get().exit_after_load;
match (state, is_sync) {
// Image failed to load, so just return nothing