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:
1 parent
5257e34e2c
commit
5b164bafd0
1 file changed
+7
-1
@@ -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
|
||||
));
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user