Show
Ignore:
Timestamp:
03/17/06 23:22:57 (8 years ago)
Author:
robert
Message:

From Keith Steffen, changed instance of sun to sun_geode to avoid Solaris10 build issue with it defining "sun"?#!

Files:
1 modified

Legend:

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

    r4805 r5054  
    4242    sun_sd->setColor(osg::Vec4(1.0, 0.0, 0.0, 1.0)); 
    4343 
    44     osg::Geode* sun = new osg::Geode; 
    45     sun->setName("sun"); 
    46     sun->addDrawable(sun_sd); 
     44    osg::Geode* sun_geode = new osg::Geode; 
     45    sun_geode->setName("sun"); 
     46    sun_geode->addDrawable(sun_sd); 
    4747 
    4848    // Move the sun behind the earth 
     
    5353    scene->addChild(earth); 
    5454    scene->addChild(pat); 
    55     pat->addChild(sun); 
     55    pat->addChild(sun_geode); 
    5656 
    5757    return scene;