mirror of
https://github.com/cemu-project/Cemu.git
synced 2026-04-08 17:31:29 -06:00
Fix crash when RADV_DEBUG is not set
This commit is contained in:
parent
42ef7657fb
commit
0ea89de990
@ -344,7 +344,8 @@ static void LinuxBreathOfTheWildWorkaround(VkInstance& instance, const VkInstanc
|
||||
|
||||
// if the user specified either shader backend, do nothing.
|
||||
// should parse the flag list but there are currently no other flags containing llvm or aco as a substring
|
||||
std::string_view debugEnv = getenv("RADV_DEBUG");
|
||||
const char* debugEnvC = getenv("RADV_DEBUG");
|
||||
std::string_view debugEnv = debugEnvC != nullptr ? debugEnvC : "";
|
||||
if (debugEnv.find("aco") != std::string_view::npos || debugEnv.find("llvm") != std::string_view::npos)
|
||||
return;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user