Extract WindowAttributes from the BuilderAttribs

This commit is contained in:
Pierre Krieger 2015-09-21 09:15:53 +02:00
parent c244f8c033
commit 48fe9b2644
12 changed files with 106 additions and 67 deletions

View file

@ -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