Only attempt to change topology class if needed

This commit is contained in:
sunshineinabox 2024-09-07 20:09:38 -07:00
parent 1cb35a42db
commit 9bcc8374da

View File

@ -408,7 +408,10 @@ namespace Ryujinx.Graphics.Vulkan
PrimitiveRestartEnable &= topologySupportsRestart;
}
if (_supportsExtDynamicState)
if (_supportsExtDynamicState && (Topology != PrimitiveTopology.LineList ||
Topology != PrimitiveTopology.TriangleStrip ||
Topology != PrimitiveTopology.PointList ||
Topology != PrimitiveTopology.PatchList))
{
Topology = Topology.ConvertToClass();
}