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
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue