Added glMultMatrixf path for GLES1

This commit is contained in:
Robert Osfield
2010-10-04 11:24:54 +00:00
parent b069b32c64
commit b9f0efecb1

View File

@@ -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();