Clean up of initialization of statics/use of getenv
This commit is contained in:
@@ -535,14 +535,6 @@ unsigned int Geometry::getPrimitiveSetIndex(const PrimitiveSet* primitiveset) co
|
||||
|
||||
bool Geometry::computeFastPathsUsed()
|
||||
{
|
||||
static bool s_DisableFastPathInDisplayLists = getenv("OSG_DISABLE_FAST_PATH_IN_DISPLAY_LISTS")!=0;
|
||||
if (_useDisplayList && s_DisableFastPathInDisplayLists)
|
||||
{
|
||||
osg::notify(osg::DEBUG_INFO)<<"Geometry::computeFastPathsUsed() - Disabling fast paths in display lists"<<std::endl;
|
||||
_supportsVertexBufferObjects = _fastPath = false;
|
||||
return _fastPath;
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// check to see if fast path can be used.
|
||||
|
||||
Reference in New Issue
Block a user