diff options
| author | 2014-12-29 19:47:41 -0800 | |
|---|---|---|
| committer | 2014-12-29 19:47:41 -0800 | |
| commit | 8ba9ac0f74abb0408a26207a76a0c1808bad8de0 (patch) | |
| tree | f1c7c3393fa726435b5b90bf335567c93e528ef1 /src/video_core/primitive_assembly.cpp | |
| parent | Add comment regarding __WIN32__ in SkyEye code (diff) | |
| parent | Merge pull request #367 from bunnei/usat_ssat (diff) | |
| download | yuzu-8ba9ac0f74abb0408a26207a76a0c1808bad8de0.tar.gz yuzu-8ba9ac0f74abb0408a26207a76a0c1808bad8de0.tar.xz yuzu-8ba9ac0f74abb0408a26207a76a0c1808bad8de0.zip | |
Fix merge conflicts
Diffstat (limited to 'src/video_core/primitive_assembly.cpp')
| -rw-r--r-- | src/video_core/primitive_assembly.cpp | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/src/video_core/primitive_assembly.cpp b/src/video_core/primitive_assembly.cpp index dabf2d1a3..242a07e26 100644 --- a/src/video_core/primitive_assembly.cpp +++ b/src/video_core/primitive_assembly.cpp | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | // Copyright 2014 Citra Emulator Project | 1 | // Copyright 2014 Citra Emulator Project |
| 2 | // Licensed under GPLv2 | 2 | // Licensed under GPLv2 or any later version |
| 3 | // Refer to the license.txt file included. | 3 | // Refer to the license.txt file included. |
| 4 | 4 | ||
| 5 | #include "pica.h" | 5 | #include "pica.h" |
| @@ -30,20 +30,27 @@ void PrimitiveAssembler<VertexType>::SubmitVertex(VertexType& vtx, TriangleHandl | |||
| 30 | } | 30 | } |
| 31 | break; | 31 | break; |
| 32 | 32 | ||
| 33 | case Regs::TriangleTopology::Strip: | ||
| 33 | case Regs::TriangleTopology::Fan: | 34 | case Regs::TriangleTopology::Fan: |
| 34 | if (buffer_index == 2) { | 35 | if (strip_ready) { |
| 35 | buffer_index = 0; | 36 | // TODO: Should be "buffer[0], buffer[1], vtx" instead! |
| 36 | 37 | // Not quite sure why we need this order for things to show up properly. | |
| 37 | triangle_handler(buffer[0], buffer[1], vtx); | 38 | // Maybe a bug in the rasterizer? |
| 39 | triangle_handler(buffer[1], buffer[0], vtx); | ||
| 40 | } | ||
| 41 | buffer[buffer_index] = vtx; | ||
| 38 | 42 | ||
| 39 | buffer[1] = vtx; | 43 | if (topology == Regs::TriangleTopology::Strip) { |
| 40 | } else { | 44 | strip_ready |= (buffer_index == 1); |
| 41 | buffer[buffer_index++] = vtx; | 45 | buffer_index = !buffer_index; |
| 46 | } else if (topology == Regs::TriangleTopology::Fan) { | ||
| 47 | buffer_index = 1; | ||
| 48 | strip_ready = true; | ||
| 42 | } | 49 | } |
| 43 | break; | 50 | break; |
| 44 | 51 | ||
| 45 | default: | 52 | default: |
| 46 | ERROR_LOG(GPU, "Unknown triangle topology %x:", (int)topology); | 53 | LOG_ERROR(HW_GPU, "Unknown triangle topology %x:", (int)topology); |
| 47 | break; | 54 | break; |
| 48 | } | 55 | } |
| 49 | } | 56 | } |