quite if config file not found, remove HW_CODEC_CONFIG, option env LIBGL_ALWAYS_SOFTWARE=1

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages
2023-07-30 11:09:14 +08:00
parent 3c4852a254
commit 2c619cbe41
3 changed files with 8 additions and 18 deletions

View File

@@ -77,7 +77,7 @@ pub fn core_main() -> Option<Vec<String>> {
#[cfg(target_os = "linux")]
#[cfg(feature = "flutter")]
{
let (k, v) = ("LIBGL_ALWAYS_SOFTWARE", "true");
let (k, v) = ("LIBGL_ALWAYS_SOFTWARE", "1");
if !hbb_common::config::Config::get_option("allow-always-software-render").is_empty() {
std::env::set_var(k, v);
} else {