From 2d291234c602b55d9063dcb661ea9df74c54ce35 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 16 Aug 2010 10:11:49 +0000 Subject: [PATCH] From Bradley Anderegg, "I fixed a problem with a stack overflow error in Particle.cpp. When the hexagon particle renders it does a glPushMatrix with no matching glPopMatrix, I simply added a glPopMatrix at the end of the rendering code." --- src/osgParticle/Particle.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/osgParticle/Particle.cpp b/src/osgParticle/Particle.cpp index 7f79c3b0c..68f9b5deb 100644 --- a/src/osgParticle/Particle.cpp +++ b/src/osgParticle/Particle.cpp @@ -190,6 +190,7 @@ void osgParticle::Particle::render(osg::GLBeginEndAdapter* gl, const osg::Vec3& gl->TexCoord2f(_s_coord + _s_tile * hex_texcoord_x1, _t_coord + _t_tile * hex_texcoord_y1); gl->Vertex3fv((p1*cosPI3+p2*sinPI3).ptr()); gl->End(); + gl->PopMatrix(); break; case LINE: