citra-emu
/
citra
Archived
1
0
Fork 0

Pica/PrimitiveAssembly: Fix triangle strips and fans being generated with incorrect winding order.

This commit is contained in:
Tony Wasserka 2015-03-09 21:49:49 +01:00
parent 8a1cc5b805
commit 5742367341
1 changed files with 3 additions and 6 deletions

View File

@ -33,12 +33,9 @@ void PrimitiveAssembler<VertexType>::SubmitVertex(VertexType& vtx, TriangleHandl
case Regs::TriangleTopology::Strip:
case Regs::TriangleTopology::Fan:
if (strip_ready) {
// TODO: Should be "buffer[0], buffer[1], vtx" instead!
// Not quite sure why we need this order for things to show up properly.
// Maybe a bug in the rasterizer?
triangle_handler(buffer[1], buffer[0], vtx);
}
if (strip_ready)
triangle_handler(buffer[0], buffer[1], vtx);
buffer[buffer_index] = vtx;
if (topology == Regs::TriangleTopology::Strip) {