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:
parent
e527b963c4
commit
a265af74ed
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -52,7 +52,7 @@ namespace dxvk::hud {
|
||||
|
||||
public:
|
||||
|
||||
HudItemSet();
|
||||
HudItemSet(const Rc<DxvkDevice>& device);
|
||||
|
||||
~HudItemSet();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user