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

@ -367,7 +367,7 @@ impl<'a> ContextPrototype<'a> {
}
pub fn finish_pbuffer(self) -> Result<Context, CreationError> {
let dimensions = self.builder.dimensions.unwrap_or((800, 600));
let dimensions = self.builder.window.dimensions.unwrap_or((800, 600));
let attrs = &[
ffi::egl::WIDTH as libc::c_int, dimensions.0 as libc::c_int,