mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-19 14:01:08 +01:00
fix: Use non-fatal error handling for Surface::discard_texture
This commit is contained in:
1 parent
6314157c92
commit
9a4e51d12a
1 file changed
+4
-3
@@ -4004,9 +4004,10 @@ impl dispatch::SurfaceOutputDetailInterface for CoreSurfaceOutputDetail {
|
||||
fn texture_discard(&self) {
|
||||
match self.context.0.surface_texture_discard(self.surface_id) {
|
||||
Ok(_status) => (),
|
||||
Err(err) => self
|
||||
.context
|
||||
.handle_error_fatal(err, "Surface::discard_texture"),
|
||||
Err(err) => {
|
||||
self.context
|
||||
.handle_error_nolabel(&self.error_sink, err, "Surface::discard_texture")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user