Resolve some validation errors
This commit is contained in:
parent
a5052013f3
commit
b66f6ce673
1 changed files with 5 additions and 8 deletions
|
@ -880,10 +880,7 @@ namespace Ryujinx.Graphics.Vulkan
|
||||||
if (_supportExtDynamic)
|
if (_supportExtDynamic)
|
||||||
{
|
{
|
||||||
DynamicState.SetDepthTestBool(depthTest.TestEnable, depthTest.WriteEnable);
|
DynamicState.SetDepthTestBool(depthTest.TestEnable, depthTest.WriteEnable);
|
||||||
if (depthTest.TestEnable)
|
DynamicState.SetDepthTestCompareOp(depthTest.TestEnable ? depthTest.Func.Convert() : default);
|
||||||
{
|
|
||||||
DynamicState.SetDepthTestCompareOp(depthTest.Func.Convert());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -975,13 +972,13 @@ namespace Ryujinx.Graphics.Vulkan
|
||||||
|
|
||||||
_newState.LogicOpEnable = logicOpEnable;
|
_newState.LogicOpEnable = logicOpEnable;
|
||||||
|
|
||||||
if (Gd.ExtendedDynamicState2Features.ExtendedDynamicState2LogicOp && logicOpEnable)
|
if (Gd.ExtendedDynamicState2Features.ExtendedDynamicState2LogicOp)
|
||||||
{
|
{
|
||||||
DynamicState.SetLogicOp(op.Convert());
|
DynamicState.SetLogicOp(logicOpEnable ? op.Convert() : default);
|
||||||
}
|
}
|
||||||
else if (logicOpEnable)
|
else
|
||||||
{
|
{
|
||||||
_newState.LogicOp = op.Convert();
|
_newState.LogicOp = logicOpEnable ? op.Convert() : default;
|
||||||
}
|
}
|
||||||
|
|
||||||
SignalStateChange();
|
SignalStateChange();
|
||||||
|
|
Loading…
Reference in a new issue