Changes to fix divide by 0 warning under VS.

This commit is contained in:
Robert Osfield
2005-10-24 18:51:36 +00:00
parent 51f74bd37a
commit 758ee8ed80
2 changed files with 3 additions and 3 deletions

View File

@@ -234,7 +234,7 @@ void osgParticle::Particle::setUpTexCoordsAsPartOfConnectedParticleSystem(Partic
float s_coord_delta = 0.5f*distance/getCurrentSize();
float s_coord = previousParticle->_s_coord + s_coord_delta;
setTextureTile(0,0,0);
setTextureTile(1,1,0);
_cur_tile = 0;
_s_coord = s_coord;
_t_coord = 0.0f;