Extract WindowAttributes from the BuilderAttribs
This commit is contained in:
parent
c244f8c033
commit
48fe9b2644
12 changed files with 106 additions and 67 deletions
|
|
@ -6,6 +6,7 @@ use GlRequest;
|
|||
use GlContext;
|
||||
use PixelFormat;
|
||||
use Robustness;
|
||||
use WindowAttributes;
|
||||
|
||||
use gl_common;
|
||||
use libc;
|
||||
|
|
@ -23,7 +24,10 @@ impl HeadlessRendererBuilder {
|
|||
HeadlessRendererBuilder {
|
||||
attribs: BuilderAttribs {
|
||||
headless: true,
|
||||
dimensions: Some((width, height)),
|
||||
window: WindowAttributes {
|
||||
dimensions: Some((width, height)),
|
||||
.. Default::default()
|
||||
},
|
||||
.. BuilderAttribs::new()
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue