mirror of
https://github.com/alacritty/alacritty.git
synced 2024-11-11 13:51:01 -05:00
Ignore errors from swap_buffers
Most of them are innocent and require just swap again. It was like that before anyway due to old glutin bug in the error handling implementation where errors won't pulled on swap buffers, but old observed error was used. Fixes #6538.
This commit is contained in:
parent
706682646b
commit
2c58e096f9
1 changed files with 4 additions and 2 deletions
|
@ -545,7 +545,7 @@ impl Display {
|
|||
|
||||
fn swap_buffers(&self) {
|
||||
#[allow(clippy::single_match)]
|
||||
match (self.surface.deref(), &self.context.get()) {
|
||||
let res = match (self.surface.deref(), &self.context.get()) {
|
||||
#[cfg(not(any(target_os = "macos", windows)))]
|
||||
(Surface::Egl(surface), PossiblyCurrentContext::Egl(context))
|
||||
if self.is_wayland && !self.debug_damage =>
|
||||
|
@ -553,8 +553,10 @@ impl Display {
|
|||
surface.swap_buffers_with_damage(context, &self.damage_rects)
|
||||
},
|
||||
(surface, context) => surface.swap_buffers(context),
|
||||
};
|
||||
if let Err(err) = res {
|
||||
debug!("error calling swap_buffers: {}", err);
|
||||
}
|
||||
.expect("failed to swap buffers.");
|
||||
}
|
||||
|
||||
/// Update font size and cell dimensions.
|
||||
|
|
Loading…
Reference in a new issue