Oversight

This commit is contained in:
sunshineinabox 2024-05-28 13:01:08 -07:00
parent 3683ee5c29
commit 424166acd8

View file

@ -727,10 +727,18 @@ namespace Ryujinx.Graphics.Vulkan
if (_supportExtDynamic) if (_supportExtDynamic)
{ {
var oldTopologyClass = GetTopologyClass(oldTopology);
var newTopologyClass = GetTopologyClass(DynamicState.Topology);
DynamicState.SetCullMode(oldCullMode); DynamicState.SetCullMode(oldCullMode);
DynamicState.SetStencilTest(oldStencilTestEnable); DynamicState.SetStencilTest(oldStencilTestEnable);
DynamicState.SetDepthTestBool(oldDepthTestEnable, oldDepthWriteEnable); DynamicState.SetDepthTestBool(oldDepthTestEnable, oldDepthWriteEnable);
DynamicState.SetPrimitiveTopology(oldTopology); DynamicState.SetPrimitiveTopology(oldTopology);
if (oldTopologyClass != newTopologyClass)
{
_newState.Topology = oldTopology;
}
} }
else else
{ {