Skip to content

Commit 27e1eb2

Browse files
committed
rebase
1 parent b08d6fc commit 27e1eb2

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

crates/bevy_render/src/view/window.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ fn extract_windows(
8383
.entry(window.id())
8484
.or_insert(ExtractedWindow {
8585
id: window.id(),
86-
handle: window.raw_handle(),
86+
raw_handle: window.raw_handle(),
8787
physical_width: new_width,
8888
physical_height: new_height,
8989
present_mode: window.present_mode(),
@@ -165,16 +165,15 @@ pub fn prepare_windows(
165165
.windows
166166
.values_mut()
167167
// value of raw_winndow_handle only None if synthetic test
168-
.filter(|x| x.raw_window_handle.is_some())
168+
.filter(|x| x.raw_handle.is_some())
169169
{
170170
let window_surfaces = window_surfaces.deref_mut();
171171
let surface = window_surfaces
172172
.surfaces
173173
.entry(window.id)
174174
.or_insert_with(|| unsafe {
175175
// NOTE: On some OSes this MUST be called from the main thread.
176-
render_instance
177-
.create_surface(&window.raw_window_handle.as_ref().unwrap().get_handle())
176+
render_instance.create_surface(&window.raw_handle.as_ref().unwrap().get_handle())
178177
});
179178

180179
let swap_chain_descriptor = wgpu::SurfaceConfiguration {

crates/bevy_window/src/window.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ impl Window {
399399
cursor_grab_mode: window_descriptor.cursor_grab_mode,
400400
cursor_icon: CursorIcon::Default,
401401
physical_cursor_position: None,
402-
raw_handle: raw_handle.map(RawHandleWrapper::new),
402+
raw_handle,
403403
focused: true,
404404
mode: window_descriptor.mode,
405405
canvas: window_descriptor.canvas.clone(),

0 commit comments

Comments
 (0)