mirror of
https://github.com/wez/wezterm.git
synced 2024-11-23 23:21:08 +03:00
wezterm: show config error window if opengl fails to init
Previously we'd silently (well, we'd log to stderr) fall back to the CPU renderer. Let's instead pop up a config error window to make this class of error more visible. refs: #272
This commit is contained in:
parent
5257e34e2c
commit
5b164bafd0
@ -786,7 +786,13 @@ impl WindowCallbacks for TermWindow {
|
||||
}
|
||||
}
|
||||
Err(err) => {
|
||||
log::error!("OpenGL init failed: {}", err);
|
||||
crate::connui::show_configuration_error_message(&format!(
|
||||
"OpenGL initialization failed: {:#}\n
|
||||
The fallback CPU based renderer is active; performance
|
||||
will be degraded and the appearance will not be as
|
||||
good as the OpenGL based renderer",
|
||||
err
|
||||
));
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user