Converted the instance of osgNew and osgDelete back to new and delete as part
of depecating the include/osg/MemoryManager
This commit is contained in:
@@ -18,7 +18,7 @@ DisplayRequirementsVisitor::DisplayRequirementsVisitor()
|
||||
|
||||
void DisplayRequirementsVisitor::applyStateSet(StateSet& stateset)
|
||||
{
|
||||
if (!_ds) _ds = osgNew osg::DisplaySettings;
|
||||
if (!_ds) _ds = new osg::DisplaySettings;
|
||||
|
||||
unsigned int min = 0; // assume stencil not needed by this stateset.
|
||||
|
||||
@@ -61,7 +61,7 @@ void DisplayRequirementsVisitor::apply(Geode& geode)
|
||||
|
||||
void DisplayRequirementsVisitor::apply(Impostor& impostor)
|
||||
{
|
||||
if (!_ds) _ds = osgNew osg::DisplaySettings;
|
||||
if (!_ds) _ds = new osg::DisplaySettings;
|
||||
|
||||
unsigned int min = 1; // number alpha bits we need at least.
|
||||
if (min>_ds->getMinimumNumAlphaBits())
|
||||
|
||||
Reference in New Issue
Block a user