@@ -64,7 +64,7 @@ impl CameraProjection for ProcessingProjection {
6464 0.0 ,
6565 self . width ,
6666 self . height , // bottom = height
67- 0.0 , // top = 0
67+ 0.0 , // top = 0
6868 self . near ,
6969 self . far ,
7070 )
@@ -94,15 +94,15 @@ impl CameraProjection for ProcessingProjection {
9494
9595 [
9696 // near plane
97- near_center + Vec3A :: new ( half_width, half_height, 0.0 ) , // bottom-right
98- near_center + Vec3A :: new ( half_width, -half_height, 0.0 ) , // top-right
97+ near_center + Vec3A :: new ( half_width, half_height, 0.0 ) , // bottom-right
98+ near_center + Vec3A :: new ( half_width, -half_height, 0.0 ) , // top-right
9999 near_center + Vec3A :: new ( -half_width, -half_height, 0.0 ) , // top-left
100- near_center + Vec3A :: new ( -half_width, half_height, 0.0 ) , // bottom-left
100+ near_center + Vec3A :: new ( -half_width, half_height, 0.0 ) , // bottom-left
101101 // far plane
102- far_center + Vec3A :: new ( half_width, half_height, 0.0 ) , // bottom-right
103- far_center + Vec3A :: new ( half_width, -half_height, 0.0 ) , // top-right
104- far_center + Vec3A :: new ( -half_width, -half_height, 0.0 ) , // top-left
105- far_center + Vec3A :: new ( -half_width, half_height, 0.0 ) , // bottom-left
102+ far_center + Vec3A :: new ( half_width, half_height, 0.0 ) , // bottom-right
103+ far_center + Vec3A :: new ( half_width, -half_height, 0.0 ) , // top-right
104+ far_center + Vec3A :: new ( -half_width, -half_height, 0.0 ) , // top-left
105+ far_center + Vec3A :: new ( -half_width, half_height, 0.0 ) , // bottom-left
106106 ]
107107 }
108108}
@@ -215,10 +215,10 @@ pub fn create_surface(
215215
216216 #[ cfg( target_os = "windows" ) ]
217217 let ( raw_window_handle, raw_display_handle) = {
218- use raw_window_handle:: { Win32WindowHandle , WindowsDisplayHandle } ;
219218 use std:: num:: NonZeroIsize ;
220- use windows:: Win32 :: Foundation :: HINSTANCE ;
221- use windows:: Win32 :: System :: LibraryLoader :: GetModuleHandleW ;
219+
220+ use raw_window_handle:: { Win32WindowHandle , WindowsDisplayHandle } ;
221+ use windows:: Win32 :: { Foundation :: HINSTANCE , System :: LibraryLoader :: GetModuleHandleW } ;
222222
223223 if window_handle == 0 {
224224 return Err ( error:: ProcessingError :: InvalidWindowHandle ) ;
@@ -478,7 +478,6 @@ pub fn exit(exit_code: u8) -> Result<()> {
478478 Ok ( ( ) )
479479 } ) ?;
480480
481-
482481 // we need to drop the app in a deterministic manner to ensure resourcse are cleaned up
483482 // otherwise we'll get wgpu graphics backend errors on exit
484483 APP . with ( |app_cell| {
0 commit comments