Skip to content

Commit a7ce40d

Browse files
committed
Fixed orientation of quad strips.
1 parent 51b387c commit a7ce40d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/osg/TemplatePrimitiveIndexFunctor

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public:
9090
unsigned int pos=first;
9191
for(GLsizei i=3;i<count;i+=2,pos+=2)
9292
{
93-
this->operator()(pos,pos+1,pos+2,pos+3);
93+
this->operator()(pos,pos+1,pos+3,pos+2);
9494
}
9595
break;
9696
}
@@ -187,7 +187,7 @@ public:
187187
IndexPointer iptr = indices;
188188
for(GLsizei i=3;i<count;i+=2,iptr+=2)
189189
{
190-
this->operator()(*(iptr),*(iptr+1),*(iptr+2),*(iptr+3));
190+
this->operator()(*(iptr),*(iptr+1),*(iptr+3),*(iptr+2));
191191
}
192192
break;
193193
}
@@ -283,7 +283,7 @@ public:
283283
IndexPointer iptr = indices;
284284
for(GLsizei i=3;i<count;i+=2,iptr+=2)
285285
{
286-
this->operator()(*(iptr),*(iptr+1),*(iptr+2),*(iptr+3));
286+
this->operator()(*(iptr),*(iptr+1),*(iptr+3),*(iptr+2));
287287
}
288288
break;
289289
}
@@ -378,7 +378,7 @@ public:
378378
IndexPointer iptr = indices;
379379
for(GLsizei i=3;i<count;i+=2,iptr+=2)
380380
{
381-
this->operator()(*(iptr),*(iptr+1),*(iptr+2),*(iptr+3));
381+
this->operator()(*(iptr),*(iptr+1),*(iptr+3),*(iptr+2));
382382
}
383383
break;
384384
}

0 commit comments

Comments
 (0)