Fixed orientation of quad strips.

This commit is contained in:
Robert Osfield
2021-12-09 12:35:38 +00:00
parent 8b20f0adef
commit 7505cb4603

View File

@@ -90,7 +90,7 @@ public:
unsigned int pos=first;
for(GLsizei i=3;i<count;i+=2,pos+=2)
{
this->operator()(pos,pos+1,pos+2,pos+3);
this->operator()(pos,pos+1,pos+3,pos+2);
}
break;
}
@@ -187,7 +187,7 @@ public:
IndexPointer iptr = indices;
for(GLsizei i=3;i<count;i+=2,iptr+=2)
{
this->operator()(*(iptr),*(iptr+1),*(iptr+2),*(iptr+3));
this->operator()(*(iptr),*(iptr+1),*(iptr+3),*(iptr+2));
}
break;
}
@@ -283,7 +283,7 @@ public:
IndexPointer iptr = indices;
for(GLsizei i=3;i<count;i+=2,iptr+=2)
{
this->operator()(*(iptr),*(iptr+1),*(iptr+2),*(iptr+3));
this->operator()(*(iptr),*(iptr+1),*(iptr+3),*(iptr+2));
}
break;
}
@@ -378,7 +378,7 @@ public:
IndexPointer iptr = indices;
for(GLsizei i=3;i<count;i+=2,iptr+=2)
{
this->operator()(*(iptr),*(iptr+1),*(iptr+2),*(iptr+3));
this->operator()(*(iptr),*(iptr+1),*(iptr+3),*(iptr+2));
}
break;
}