1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-18 20:52:10 +01:00

[hud] Fix up nonsensical scaling factors

This commit is contained in:
Philip Rebohle 2020-12-06 01:03:01 +01:00
parent 74abb5bb80
commit 03f11baf57
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -10,6 +10,10 @@ namespace dxvk::hud {
m_renderer (device),
m_hudItems (device),
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
m_rsState.polygonMode = VK_POLYGON_MODE_FILL;
m_rsState.cullMode = VK_CULL_MODE_BACK_BIT;