84d2d01163
memory manager published at flipcode.com. This can be turned on with the OSG_USE_MEMORY_MANGER option which then uses custom global new and delete operators as well as provide osgNew and osgDelete macro's which add ability to log line and file from which calls are made. Updated osg,osgUtil,osgDB,osgText and osgPlugins/osg to use osgNew/osgDelete, and fixed memory leaks highlighted by the new memory manager.
21 lines
325 B
C++
21 lines
325 B
C++
#include <osg/EarthSky>
|
|
|
|
#include <algorithm>
|
|
|
|
using namespace osg;
|
|
|
|
/**
|
|
* EarthSky constructor.
|
|
*/
|
|
EarthSky::EarthSky()
|
|
{
|
|
StateSet* stateset = osgNew StateSet;
|
|
stateset->setRenderBinDetails(-1,"RenderBin");
|
|
setStateSet(stateset);
|
|
|
|
_requiresClear = true;
|
|
_clearColor.set(0.0f,0.0f,0.0f,1.0f);
|
|
|
|
}
|
|
|