Extract WindowAttributes from the BuilderAttribs
This commit is contained in:
parent
c244f8c033
commit
48fe9b2644
12 changed files with 106 additions and 67 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue