Make new function take both a HasRawWindowHandle and a HasRawDisplayHandle object

This commit is contained in:
Jeremy Soller 2022-12-20 10:10:52 -07:00
parent e781cd8cab
commit 9b8641fc07
6 changed files with 10 additions and 10 deletions

View file

@ -21,7 +21,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;