File tree Expand file tree Collapse file tree 3 files changed +3
-9
lines changed Expand file tree Collapse file tree 3 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -449,11 +449,9 @@ fn main() {
449
449
} ;
450
450
match event {
451
451
Event :: WindowEvent {
452
- event : WindowEvent :: Resized ( _ ) ,
452
+ event : WindowEvent :: Resized ( size ) ,
453
453
..
454
454
} => {
455
- let size = window. inner_size ( ) ;
456
-
457
455
let surface_desc = wgpu:: SurfaceConfiguration {
458
456
usage : wgpu:: TextureUsages :: RENDER_ATTACHMENT ,
459
457
format : wgpu:: TextureFormat :: Bgra8UnormSrgb ,
Original file line number Diff line number Diff line change @@ -145,11 +145,9 @@ fn main() {
145
145
} ;
146
146
match event {
147
147
Event :: WindowEvent {
148
- event : WindowEvent :: Resized ( _ ) ,
148
+ event : WindowEvent :: Resized ( size ) ,
149
149
..
150
150
} => {
151
- let size = window. inner_size ( ) ;
152
-
153
151
let surface_desc = wgpu:: SurfaceConfiguration {
154
152
usage : wgpu:: TextureUsages :: RENDER_ATTACHMENT ,
155
153
format : wgpu:: TextureFormat :: Bgra8UnormSrgb ,
Original file line number Diff line number Diff line change @@ -117,11 +117,9 @@ fn main() {
117
117
} ;
118
118
match event {
119
119
Event :: WindowEvent {
120
- event : WindowEvent :: Resized ( _ ) ,
120
+ event : WindowEvent :: Resized ( size ) ,
121
121
..
122
122
} => {
123
- let size = window. inner_size ( ) ;
124
-
125
123
let surface_desc = wgpu:: SurfaceConfiguration {
126
124
usage : wgpu:: TextureUsages :: RENDER_ATTACHMENT ,
127
125
format : wgpu:: TextureFormat :: Bgra8UnormSrgb ,
You can’t perform that action at this time.
0 commit comments