mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-31 05:52:11 +01:00
[hud] Fix up nonsensical scaling factors
This commit is contained in:
parent
74abb5bb80
commit
03f11baf57
@ -10,6 +10,10 @@ namespace dxvk::hud {
|
|||||||
m_renderer (device),
|
m_renderer (device),
|
||||||
m_hudItems (device),
|
m_hudItems (device),
|
||||||
m_scale (m_hudItems.getOption<float>("scale", 1.0f)) {
|
m_scale (m_hudItems.getOption<float>("scale", 1.0f)) {
|
||||||
|
// Sanitize scaling factor
|
||||||
|
if (m_scale < 0.01f)
|
||||||
|
m_scale = 1.0f;
|
||||||
|
|
||||||
// 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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user