File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ fn extract_windows(
83
83
. entry ( window. id ( ) )
84
84
. or_insert ( ExtractedWindow {
85
85
id : window. id ( ) ,
86
- handle : window. raw_handle ( ) ,
86
+ raw_handle : window. raw_handle ( ) ,
87
87
physical_width : new_width,
88
88
physical_height : new_height,
89
89
present_mode : window. present_mode ( ) ,
@@ -165,16 +165,15 @@ pub fn prepare_windows(
165
165
. windows
166
166
. values_mut ( )
167
167
// 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 ( ) )
169
169
{
170
170
let window_surfaces = window_surfaces. deref_mut ( ) ;
171
171
let surface = window_surfaces
172
172
. surfaces
173
173
. entry ( window. id )
174
174
. or_insert_with ( || unsafe {
175
175
// 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 ( ) )
178
177
} ) ;
179
178
180
179
let swap_chain_descriptor = wgpu:: SurfaceConfiguration {
Original file line number Diff line number Diff line change @@ -399,7 +399,7 @@ impl Window {
399
399
cursor_grab_mode : window_descriptor. cursor_grab_mode ,
400
400
cursor_icon : CursorIcon :: Default ,
401
401
physical_cursor_position : None ,
402
- raw_handle : raw_handle . map ( RawHandleWrapper :: new ) ,
402
+ raw_handle,
403
403
focused : true ,
404
404
mode : window_descriptor. mode ,
405
405
canvas : window_descriptor. canvas . clone ( ) ,
You can’t perform that action at this time.
0 commit comments