We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa1ad82 commit ef86e56Copy full SHA for ef86e56
src/gl/x11/errors.rs
@@ -45,10 +45,13 @@ impl<'a> XErrorHandler<'a> {
45
let err = *err;
46
47
CURRENT_X11_ERROR.with(|mutex| match mutex.lock() {
48
- Ok(mut current_error) => {
+ // If multiple errors occur, keep the first one since that's likely going to be the
49
+ // cause of the other errors
50
+ Ok(mut current_error) if current_error.is_none() => {
51
*current_error = Some(err);
52
0
53
}
54
+ Ok(_) => 0,
55
Err(e) => {
56
eprintln!(
57
"[FATAL] raw-gl-context: Failed to lock for X11 Error Handler: {:?}",
0 commit comments