diff --git a/src/osg/Geometry.cpp b/src/osg/Geometry.cpp index 9a16e6bff..5fc4af81f 100644 --- a/src/osg/Geometry.cpp +++ b/src/osg/Geometry.cpp @@ -659,7 +659,7 @@ unsigned int Geometry::getPrimitiveSetIndex(const PrimitiveSet* primitiveset) co bool Geometry::computeFastPathsUsed() { - static bool s_DisableFastPathInDisplayLists = getenv("OSG_DISABLE_FAST_PATH_IN_DISPLAY_LISTS"); + 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"<