mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2024-09-15 00:45:33 +00:00
Pica/PrimitiveAssembly: Fix triangle strips and fans being generated with incorrect winding order.
This commit is contained in:
parent
8a1cc5b805
commit
5742367341
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user