From 08a823d85747929db960df3d059b92bdc5bade3e Mon Sep 17 00:00:00 2001 From: Jethro Leevers Date: Mon, 6 Jun 2016 11:59:56 +0100 Subject: [PATCH] Added support for GL_LINE_STRIP_ADJACENCY_EXT --- include/osg/TemplatePrimitiveFunctor | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/include/osg/TemplatePrimitiveFunctor b/include/osg/TemplatePrimitiveFunctor index 4d446b944..25d98ce19 100644 --- a/include/osg/TemplatePrimitiveFunctor +++ b/include/osg/TemplatePrimitiveFunctor @@ -152,6 +152,12 @@ namespace osg { this->operator()(*(vptr),*(vptr+1),_treatVertexDataAsTemporary); break; } + case(GL_LINE_STRIP_ADJACENCY_EXT): { + const Vec3* vlast = &_vertexArrayPtr[first+count-2]; + for(const Vec3* vptr=&_vertexArrayPtr[first+1];vptroperator()(*(vptr),*(vptr+1),_treatVertexDataAsTemporary); + break; + } case(GL_LINE_LOOP): { const Vec3* vlast = &_vertexArrayPtr[first+count-1]; for(const Vec3* vptr=&_vertexArrayPtr[first];vptroperator()(_vertexArrayPtr[*iptr],_vertexArrayPtr[*(iptr+1)], + _treatVertexDataAsTemporary); + break; + } case(GL_LINE_LOOP): { IndexPointer ilast = &indices[count-1]; for(IndexPointer iptr=indices;iptr