From 7505cb46037bf09bd7197cb771e5f6276950c444 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 9 Dec 2021 12:35:38 +0000 Subject: [PATCH] Fixed orientation of quad strips. --- include/osg/TemplatePrimitiveIndexFunctor | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/osg/TemplatePrimitiveIndexFunctor b/include/osg/TemplatePrimitiveIndexFunctor index f5bc5efc4..d5757b16f 100644 --- a/include/osg/TemplatePrimitiveIndexFunctor +++ b/include/osg/TemplatePrimitiveIndexFunctor @@ -90,7 +90,7 @@ public: unsigned int pos=first; for(GLsizei i=3;ioperator()(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;ioperator()(*(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;ioperator()(*(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;ioperator()(*(iptr),*(iptr+1),*(iptr+2),*(iptr+3)); + this->operator()(*(iptr),*(iptr+1),*(iptr+3),*(iptr+2)); } break; }