From dea22aeb8e42a8b0a50b474330b90ef9ef94bfc4 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 17 Feb 2004 09:46:16 +0000 Subject: [PATCH] Added support for a OSG_DISABLE_FAST_PATH_IN_DISPLAY_LISTS environmental variable in the computeFastPathsUsed() method so that use of vertex arrays can be forced off. This is a work around for a bug in the OpenGL drivers in OSX/Panther. --- src/osg/Geometry.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/osg/Geometry.cpp b/src/osg/Geometry.cpp index 6306525dd..9a16e6bff 100644 --- a/src/osg/Geometry.cpp +++ b/src/osg/Geometry.cpp @@ -659,6 +659,14 @@ unsigned int Geometry::getPrimitiveSetIndex(const PrimitiveSet* primitiveset) co bool Geometry::computeFastPathsUsed() { + static bool s_DisableFastPathInDisplayLists = getenv("OSG_DISABLE_FAST_PATH_IN_DISPLAY_LISTS"); + if (_useDisplayList && s_DisableFastPathInDisplayLists) + { + osg::notify(osg::DEBUG_INFO)<<"Geometry::computeFastPathsUsed() - Disabling fast paths in display lists"<