summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2015-12-08 16:27:40 +0100
committerbunnei <bunneidev@gmail.com>2015-12-08 16:27:40 +0100
commit3013f26d706acfc1ad6f2e6c74c19be4f9257b62 (patch)
treed68d651ce4ee276c8164efd7c5fb40a9aeb420d4 /src
parentMerge pull request #1272 from yuriks/merge-rasterizer (diff)
parentGPU/PrimitiveAssembler: Fixed drawing triangle fans. (diff)
downloadyuzu-3013f26d706acfc1ad6f2e6c74c19be4f9257b62.tar
yuzu-3013f26d706acfc1ad6f2e6c74c19be4f9257b62.tar.gz
yuzu-3013f26d706acfc1ad6f2e6c74c19be4f9257b62.tar.bz2
yuzu-3013f26d706acfc1ad6f2e6c74c19be4f9257b62.tar.lz
yuzu-3013f26d706acfc1ad6f2e6c74c19be4f9257b62.tar.xz
yuzu-3013f26d706acfc1ad6f2e6c74c19be4f9257b62.tar.zst
yuzu-3013f26d706acfc1ad6f2e6c74c19be4f9257b62.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/primitive_assembly.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/video_core/primitive_assembly.cpp b/src/video_core/primitive_assembly.cpp
index 44a8dbfe9..d5a0a96a4 100644
--- a/src/video_core/primitive_assembly.cpp
+++ b/src/video_core/primitive_assembly.cpp
@@ -39,13 +39,12 @@ void PrimitiveAssembler<VertexType>::SubmitVertex(VertexType& vtx, TriangleHandl
buffer[buffer_index] = vtx;
- if (topology == Regs::TriangleTopology::Strip) {
- strip_ready |= (buffer_index == 1);
+ strip_ready |= (buffer_index == 1);
+
+ if (topology == Regs::TriangleTopology::Strip)
buffer_index = !buffer_index;
- } else if (topology == Regs::TriangleTopology::Fan) {
+ else if (topology == Regs::TriangleTopology::Fan)
buffer_index = 1;
- strip_ready = true;
- }
break;
default: