1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-12-25 07:56:01 +00:00

Primitive restart is enabled/disabled based on the original topology before its converted to its topology class, make this behavior consistent

This commit is contained in:
sunshineinabox 2024-09-09 09:01:00 -07:00
parent 9bcc8374da
commit 381abda2c8

View file

@ -676,7 +676,7 @@ namespace Ryujinx.Graphics.Vulkan
if (_supportExtDynamic) if (_supportExtDynamic)
{ {
if (oldTopologyClass != _newState.Topology.ConvertToClass()) if (oldTopologyClass != _newState.Topology)
{ {
_newState.Topology = oldTopology; _newState.Topology = oldTopology;
} }
@ -1048,9 +1048,7 @@ namespace Ryujinx.Graphics.Vulkan
if (_supportExtDynamic) if (_supportExtDynamic)
{ {
var newTopologyClass = vkTopology.ConvertToClass(); if ((_newState.Topology != vkTopology))
if ((_newState.Topology.ConvertToClass() != newTopologyClass))
{ {
_newState.Topology = vkTopology; _newState.Topology = vkTopology;
} }