mirror of
https://github.com/hannobraun/Fornjot
synced 2025-11-15 11:30:44 +00:00
Inline redundant function
This commit is contained in:
parent
a3d28e4e3b
commit
f789c09ef7
@ -42,7 +42,7 @@ impl Renderer {
|
||||
backends: wgpu::Backends::all(),
|
||||
..Default::default()
|
||||
});
|
||||
let surface = instance.create_surface(screen.winit_window())?;
|
||||
let surface = instance.create_surface(screen.inner.clone())?;
|
||||
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
for adapter in instance.enumerate_adapters(wgpu::Backends::all()) {
|
||||
|
||||
@ -14,10 +14,6 @@ impl Window {
|
||||
height: size.height,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn winit_window(&self) -> Arc<winit::window::Window> {
|
||||
self.inner.clone()
|
||||
}
|
||||
}
|
||||
|
||||
/// Cursor position in normalized coordinates (-1 to +1)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user