mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	Merge pull request #647 from neobrain/rip_culling_hack
Pica/PrimitiveAssembly: Fix triangle strips and fans being generated with incorrect winding order.
This commit is contained in:
		
						commit
						e10a9b2f66
					
				
					 1 changed files with 3 additions and 6 deletions
				
			
		|  | @ -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…
	
	Add table
		Add a link
		
	
		Reference in a new issue