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:
parent
9bcc8374da
commit
381abda2c8
1 changed files with 2 additions and 4 deletions
|
@ -676,7 +676,7 @@ namespace Ryujinx.Graphics.Vulkan
|
|||
|
||||
if (_supportExtDynamic)
|
||||
{
|
||||
if (oldTopologyClass != _newState.Topology.ConvertToClass())
|
||||
if (oldTopologyClass != _newState.Topology)
|
||||
{
|
||||
_newState.Topology = oldTopology;
|
||||
}
|
||||
|
@ -1048,9 +1048,7 @@ namespace Ryujinx.Graphics.Vulkan
|
|||
|
||||
if (_supportExtDynamic)
|
||||
{
|
||||
var newTopologyClass = vkTopology.ConvertToClass();
|
||||
|
||||
if ((_newState.Topology.ConvertToClass() != newTopologyClass))
|
||||
if ((_newState.Topology != vkTopology))
|
||||
{
|
||||
_newState.Topology = vkTopology;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue