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

@ -63,7 +63,7 @@ use winit::window::WindowBuilder;
fn main() {
let event_loop = EventLoop::new();
let window = WindowBuilder::new().build(&event_loop).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;