mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-12-25 18:13:04 +00:00
Partially revert previous commit as no need to set depthbias dynamically if depthbias is not enabled.
This commit is contained in:
parent
48ad342ee9
commit
ab9025286d
1 changed files with 7 additions and 5 deletions
|
@ -793,22 +793,24 @@ namespace Ryujinx.Graphics.Vulkan
|
|||
}
|
||||
|
||||
bool depthBiasEnable = (enables != PolygonModeMask.None) && (factor != 0 && units != 0);
|
||||
bool changed = false;
|
||||
|
||||
if (_newState.DepthBiasEnable != depthBiasEnable)
|
||||
{
|
||||
_newState.DepthBiasEnable = depthBiasEnable;
|
||||
changed = true;
|
||||
}
|
||||
|
||||
if (depthBiasEnable)
|
||||
{
|
||||
DynamicState.SetDepthBias(factor, units, clamp);
|
||||
}
|
||||
else
|
||||
{
|
||||
DynamicState.SetDepthBias(0, 0, 0);
|
||||
changed = true;
|
||||
}
|
||||
|
||||
SignalStateChange();
|
||||
if (changed)
|
||||
{
|
||||
SignalStateChange();
|
||||
}
|
||||
}
|
||||
|
||||
public void SetDepthClamp(bool clamp)
|
||||
|
|
Loading…
Reference in a new issue