From 57ed6ebb79affecf09a3a4cb5cb5f5510b3f57c1 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 24 Feb 2004 12:04:48 +0000 Subject: [PATCH] Warning fix --- src/osg/Geometry.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"<