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
@ -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…
x
Reference in New Issue
Block a user