From b9f0efecb1ed41ec32b171305c21f75c8b974cce Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 4 Oct 2010 11:24:54 +0000 Subject: [PATCH] Added glMultMatrixf path for GLES1 --- src/osgParticle/Particle.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/osgParticle/Particle.cpp b/src/osgParticle/Particle.cpp index a4a618912..90a6a9537 100644 --- a/src/osgParticle/Particle.cpp +++ b/src/osgParticle/Particle.cpp @@ -234,7 +234,11 @@ void osgParticle::Particle::render(osg::RenderInfo& renderInfo, const osg::Vec3& if (requiresRotation) { osg::Quat rotation(xrot.x(), osg::X_AXIS, xrot.y(), osg::Y_AXIS, xrot.z(), osg::Z_AXIS); +#if defined(OSG_GLES1_AVAILABLE) + glMultMatrixf(osg::Matrixf(rotation).ptr()); +#else glMultMatrixd(osg::Matrixd(rotation).ptr()); +#endif } _drawable->draw(renderInfo); glPopMatrix();