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.
This commit is contained in:
@@ -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"<<std::endl;
|
||||
_fastPath = false;
|
||||
return _fastPath;
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// check to see if fast path can be used.
|
||||
|
||||
Reference in New Issue
Block a user