mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-31 05:40:04 -04:00
Extract WindowAttributes from the BuilderAttribs
This commit is contained in:
@@ -86,7 +86,7 @@ pub enum HeadlessContext {
|
||||
|
||||
impl HeadlessContext {
|
||||
pub fn new(mut builder: BuilderAttribs) -> Result<HeadlessContext, CreationError> {
|
||||
builder.visible = false;
|
||||
builder.window.visible = false;
|
||||
|
||||
// if EGL is available, we try using EGL first
|
||||
// if EGL returns an error, we try the hidden window method
|
||||
|
||||
Reference in New Issue
Block a user