mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-12-26 18:43:04 +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:
parent
9bcc8374da
commit
381abda2c8
1 changed files with 2 additions and 4 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue