Only reject modes based on resolution when using fullscreen. This fixes creating a window that is not the same resolution as an existing video mode.
This commit is contained in:
parent
41d7118a42
commit
22b434bf1d
1 changed files with 1 additions and 1 deletions
|
|
@ -95,7 +95,7 @@ impl Window {
|
||||||
best_mode = i;
|
best_mode = i;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
if best_mode == -1 {
|
if best_mode == -1 && builder.monitor.is_some() {
|
||||||
return Err(format!("Could not find a suitable graphics mode"));
|
return Err(format!("Could not find a suitable graphics mode"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue