From 349817c52ee51d2e6cb1826440036e686ae22016 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Fri, 2 Mar 2018 10:36:46 +0100 Subject: [PATCH] [dxvk] Do not enable HUD if DXVK_HUD is 0 Fixes #107. --- src/dxvk/hud/dxvk_hud.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dxvk/hud/dxvk_hud.cpp b/src/dxvk/hud/dxvk_hud.cpp index 302c1e54..dea24499 100644 --- a/src/dxvk/hud/dxvk_hud.cpp +++ b/src/dxvk/hud/dxvk_hud.cpp @@ -39,7 +39,7 @@ namespace dxvk::hud { Rc Hud::createHud(const Rc& 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