mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-07 16:54:14 +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(
|
Hud::Hud(
|
||||||
const Rc<DxvkDevice>& device)
|
const Rc<DxvkDevice>& device)
|
||||||
: m_device (device),
|
: m_device (device),
|
||||||
m_renderer (device) {
|
m_renderer (device),
|
||||||
|
m_hudItems (device) {
|
||||||
// Set up constant state
|
// Set up constant state
|
||||||
m_rsState.polygonMode = VK_POLYGON_MODE_FILL;
|
m_rsState.polygonMode = VK_POLYGON_MODE_FILL;
|
||||||
m_rsState.cullMode = VK_CULL_MODE_BACK_BIT;
|
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");
|
std::string configStr = env::getEnvVar("DXVK_HUD");
|
||||||
|
|
||||||
|
if (configStr.empty())
|
||||||
|
configStr = device->config().hud;
|
||||||
|
|
||||||
if (configStr == "full") {
|
if (configStr == "full") {
|
||||||
// Just enable everything
|
// Just enable everything
|
||||||
m_enableFull = true;
|
m_enableFull = true;
|
||||||
|
@ -52,7 +52,7 @@ namespace dxvk::hud {
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
HudItemSet();
|
HudItemSet(const Rc<DxvkDevice>& device);
|
||||||
|
|
||||||
~HudItemSet();
|
~HudItemSet();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user