1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-11-30 22:24:15 +01:00

[dxvk] Do not enable HUD if DXVK_HUD is 0

Fixes #107.
This commit is contained in:
Philip Rebohle 2018-03-02 10:36:46 +01:00
parent fae9916708
commit 349817c52e
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -39,7 +39,7 @@ namespace dxvk::hud {
Rc<Hud> Hud::createHud(const Rc<DxvkDevice>& device) {
const std::string hudConfig = env::getEnvVar(L"DXVK_HUD");
if (hudConfig.size() == 0)
if (hudConfig.size() == 0 || hudConfig == "0")
return nullptr;
// TODO implement configuration options for the HUD