diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-08-21 04:07:30 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-08-21 04:07:30 +0200 |
commit | aed6011d7c3a26b1121a98c3cb322fbc6ee7d7a7 (patch) | |
tree | 57585d1912e84a9c4f70ffc444bd78c9e14491c0 /src/video_core/renderer_vulkan/vk_rasterizer.cpp | |
parent | Merge pull request #4546 from lioncash/telemetry (diff) | |
download | yuzu-aed6011d7c3a26b1121a98c3cb322fbc6ee7d7a7.tar yuzu-aed6011d7c3a26b1121a98c3cb322fbc6ee7d7a7.tar.gz yuzu-aed6011d7c3a26b1121a98c3cb322fbc6ee7d7a7.tar.bz2 yuzu-aed6011d7c3a26b1121a98c3cb322fbc6ee7d7a7.tar.lz yuzu-aed6011d7c3a26b1121a98c3cb322fbc6ee7d7a7.tar.xz yuzu-aed6011d7c3a26b1121a98c3cb322fbc6ee7d7a7.tar.zst yuzu-aed6011d7c3a26b1121a98c3cb322fbc6ee7d7a7.zip |
Diffstat (limited to 'src/video_core/renderer_vulkan/vk_rasterizer.cpp')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_rasterizer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/renderer_vulkan/vk_rasterizer.cpp b/src/video_core/renderer_vulkan/vk_rasterizer.cpp index 936f76195..ff1b52eab 100644 --- a/src/video_core/renderer_vulkan/vk_rasterizer.cpp +++ b/src/video_core/renderer_vulkan/vk_rasterizer.cpp @@ -1443,10 +1443,10 @@ void RasterizerVulkan::UpdateFrontFace(Tegra::Engines::Maxwell3D::Regs& regs) { } void RasterizerVulkan::UpdatePrimitiveTopology(Tegra::Engines::Maxwell3D::Regs& regs) { - if (!state_tracker.TouchPrimitiveTopology()) { + const Maxwell::PrimitiveTopology primitive_topology = regs.draw.topology.Value(); + if (!state_tracker.ChangePrimitiveTopology(primitive_topology)) { return; } - const Maxwell::PrimitiveTopology primitive_topology = regs.draw.topology.Value(); scheduler.Record([this, primitive_topology](vk::CommandBuffer cmdbuf) { cmdbuf.SetPrimitiveTopologyEXT(MaxwellToVK::PrimitiveTopology(device, primitive_topology)); }); |