Make new function take both a HasRawWindowHandle and a HasRawDisplayHandle object
This commit is contained in:
parent
e781cd8cab
commit
9b8641fc07
6 changed files with 10 additions and 10 deletions
|
|
@ -24,7 +24,7 @@ fn main() {
|
|||
.unwrap();
|
||||
}
|
||||
|
||||
let mut graphics_context = unsafe { GraphicsContext::new(&window) }.unwrap();
|
||||
let mut graphics_context = unsafe { GraphicsContext::new(&window, &window) }.unwrap();
|
||||
|
||||
event_loop.run(move |event, _, control_flow| {
|
||||
*control_flow = ControlFlow::Wait;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue