fix: Use non-fatal error handling for Surface::discard_texture

This commit is contained in:
atlas authored and Teodor Tanasoaia committed 2026-04-14 10:51:03 +02:00
1 parent 6314157c92
commit 9a4e51d12a
1 file changed
+4 -3
+4 -3
View File
@@ -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")
}
}
}
}