1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-11-18 08:26:42 +00:00

Resolve some validation errors

This commit is contained in:
sunshineinabox 2024-07-23 20:58:47 -07:00
parent a5052013f3
commit b66f6ce673

View file

@ -880,10 +880,7 @@ namespace Ryujinx.Graphics.Vulkan
if (_supportExtDynamic)
{
DynamicState.SetDepthTestBool(depthTest.TestEnable, depthTest.WriteEnable);
if (depthTest.TestEnable)
{
DynamicState.SetDepthTestCompareOp(depthTest.Func.Convert());
}
DynamicState.SetDepthTestCompareOp(depthTest.TestEnable ? depthTest.Func.Convert() : default);
}
else
{
@ -975,13 +972,13 @@ namespace Ryujinx.Graphics.Vulkan
_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();