1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-31 14:52:11 +01:00

[hud] Respect dxvk.hud configuration option again

This was accidentally dropped during the HUD refactor. Fixes #1279.
This commit is contained in:
Philip Rebohle 2019-12-17 04:40:06 +01:00
parent e527b963c4
commit a265af74ed
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
3 changed files with 7 additions and 3 deletions

View File

@ -7,7 +7,8 @@ namespace dxvk::hud {
Hud::Hud(
const Rc<DxvkDevice>& device)
: m_device (device),
m_renderer (device) {
m_renderer (device),
m_hudItems (device) {
// Set up constant state
m_rsState.polygonMode = VK_POLYGON_MODE_FILL;
m_rsState.cullMode = VK_CULL_MODE_BACK_BIT;

View File

@ -15,9 +15,12 @@ namespace dxvk::hud {
}
HudItemSet::HudItemSet() {
HudItemSet::HudItemSet(const Rc<DxvkDevice>& device) {
std::string configStr = env::getEnvVar("DXVK_HUD");
if (configStr.empty())
configStr = device->config().hud;
if (configStr == "full") {
// Just enable everything
m_enableFull = true;

View File

@ -52,7 +52,7 @@ namespace dxvk::hud {
public:
HudItemSet();
HudItemSet(const Rc<DxvkDevice>& device);
~HudItemSet();