mirror of
https://github.com/flightlessmango/MangoHud.git
synced 2024-11-04 06:00:23 +00:00
system info: don't use glxinfo
It's not available in steam runtime and generates a lot of log spam
This commit is contained in:
parent
5754ca13ee
commit
ea3ba7e30d
@ -894,8 +894,8 @@ void init_system_info(){
|
||||
const char* mangohud_recursion = getenv("MANGOHUD_RECURSION");
|
||||
if (!mangohud_recursion) {
|
||||
setenv("MANGOHUD_RECURSION", "1", 1);
|
||||
driver = exec("glxinfo -B | sed -n 's/^OpenGL version.*: \\(.*\\)/\\1/p' | sed 's/([^)]*)//g;s/ / /g'");
|
||||
trim(driver);
|
||||
// driver = exec("glxinfo -B | sed -n 's/^OpenGL version.*: \\(.*\\)/\\1/p' | sed 's/([^)]*)//g;s/ / /g'");
|
||||
// trim(driver);
|
||||
unsetenv("MANGOHUD_RECURSION");
|
||||
} else {
|
||||
driver = "MangoHud glxinfo recursion detected";
|
||||
|
Loading…
Reference in New Issue
Block a user