Show
Ignore:
Timestamp:
02/19/08 10:49:12 (7 years ago)
Author:
robert
Message:

From Philip Lowman, workaround for gcc 3.2.3 bug

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgtext/osgtext.cpp

    r7741 r7867  
    547547        for(unsigned int i=0; i<_maxNumTextPerGeode; ++i) 
    548548        { 
    549             osg::Vec3 position(float(rand()) / float(RAND_MAX) - 0.5f, float(rand()) / float(RAND_MAX) - 0.5f, float(i)/float(_maxNumTextPerGeode) - 0.5f); 
     549            float x = float(rand()) / float(RAND_MAX) - 0.5f; 
     550            float y = float(rand()) / float(RAND_MAX) - 0.5f; 
     551            float z = float(i)      / float(_maxNumTextPerGeode) - 0.5f; 
     552            osg::Vec3 position(x, y, z); 
    550553 
    551554            std::string str;