From b1572900b5d8d2d961dfddd7d5b2bcb36441d392 Mon Sep 17 00:00:00 2001 From: Cody Glassman Date: Wed, 16 Sep 2026 11:30:05 -0700 Subject: [PATCH] render particles with GL_TRIANGLES unconditionally --- src/osgParticle/ParticleSystem.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/osgParticle/ParticleSystem.cpp b/src/osgParticle/ParticleSystem.cpp index 3d7fe0a10cc..3109e63b877 100644 --- a/src/osgParticle/ParticleSystem.cpp +++ b/src/osgParticle/ParticleSystem.cpp @@ -421,15 +421,6 @@ void osgParticle::ParticleSystem::drawImplementation(osg::RenderInfo& renderInfo texcoords.push_back(t1); texcoords.push_back(t2); -#if defined(OSG_GL1_AVAILABLE) || defined(OSG_GL2_AVAILABLE) || defined(OSG_GLES1_AVAILABLE) - const unsigned int count = 4; - const GLenum mode = GL_QUADS; - - // Last point (and texcoord) of quad - vertices.push_back(c3); - texcoords.push_back(t3); -#else - // No GL_QUADS mode on OpenGL 3 and upper / GLES2 and upper const unsigned int count = 6; const GLenum mode = GL_TRIANGLES; @@ -440,7 +431,7 @@ void osgParticle::ParticleSystem::drawImplementation(osg::RenderInfo& renderInfo texcoords.push_back(t2); texcoords.push_back(t3); texcoords.push_back(t0); -#endif + for (unsigned int j = 0; j < count; ++j) colors.push_back(color);