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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user