mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
don't create view in draw_egui
This commit is contained in:
parent
25c4d65b5d
commit
cfd0ffd7f6
@ -574,20 +574,13 @@ impl<'frame> Drawer<'frame> {
|
||||
&screen_descriptor,
|
||||
);
|
||||
|
||||
let view = self.surface_texture.as_ref().unwrap().texture.create_view(
|
||||
&wgpu::TextureViewDescriptor {
|
||||
label: Some("Surface texture view"),
|
||||
..Default::default()
|
||||
},
|
||||
);
|
||||
|
||||
self.borrow
|
||||
.egui_render_pass
|
||||
.execute(
|
||||
self.encoder.as_mut().unwrap(),
|
||||
self.taking_screenshot
|
||||
.as_ref()
|
||||
.map_or(&view, |s| s.texture_view()),
|
||||
.map_or(&self.view, |s| s.texture_view()),
|
||||
&paint_jobs,
|
||||
&screen_descriptor,
|
||||
None,
|
||||
|
Loading…
Reference in New Issue
Block a user