mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Revert to normal for loop in the index generator, the < 3 case gets taken care of properly. Just existing caused some issues.
This commit is contained in:
parent
0a844ce98d
commit
497915141b
1 changed files with 1 additions and 2 deletions
|
@ -100,10 +100,9 @@ void IndexGenerator::AddList(int numVerts) {
|
|||
void IndexGenerator::AddStrip(int numVerts) {
|
||||
int wind = 1;
|
||||
const int numTris = numVerts - 2;
|
||||
if (numTris < 0) return;
|
||||
u16 *outInds = inds_;
|
||||
int ibase = index_;
|
||||
for (int i = numTris; i; i--) {
|
||||
for (int i = 0; i < numTris; i++) {
|
||||
*outInds++ = ibase;
|
||||
*outInds++ = ibase + wind;
|
||||
wind ^= 3; // toggle between 1 and 2
|
||||
|
|
Loading…
Add table
Reference in a new issue