Deprecated dirtyDisplayLists(), use established dirtyGLObjects() instead
This commit is contained in:
@@ -735,7 +735,7 @@ void VertexCacheVisitor::optimizeVertices(Geometry& geom)
|
||||
else
|
||||
cout << "0.0\n";
|
||||
#endif
|
||||
geom.dirtyDisplayList();
|
||||
geom.dirtyGLObjects();
|
||||
}
|
||||
|
||||
// The main optimization loop
|
||||
@@ -1176,7 +1176,7 @@ void VertexAccessOrderVisitor::optimizeOrder(Geometry& geom)
|
||||
// deduplicate UVs array that were only shared within the geometry
|
||||
deduplicator.deduplicateUVs(geom);
|
||||
|
||||
geom.dirtyDisplayList();
|
||||
geom.dirtyGLObjects();
|
||||
}
|
||||
|
||||
void SharedArrayOptimizer::findDuplicatedUVs(const osg::Geometry& geometry)
|
||||
|
||||
@@ -884,7 +884,7 @@ void CollectLowestTransformsVisitor::doTransform(osg::Object* obj,osg::Matrix& m
|
||||
osgUtil::TransformAttributeFunctor tf(matrix);
|
||||
drawable->accept(tf);
|
||||
drawable->dirtyBound();
|
||||
drawable->dirtyDisplayList();
|
||||
drawable->dirtyGLObjects();
|
||||
|
||||
return;
|
||||
}
|
||||
@@ -2444,7 +2444,7 @@ bool Optimizer::MergeGeometryVisitor::mergeGeometry(osg::Geometry& lhs,osg::Geom
|
||||
}
|
||||
|
||||
lhs.dirtyBound();
|
||||
lhs.dirtyDisplayList();
|
||||
lhs.dirtyGLObjects();
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -4511,7 +4511,7 @@ void Optimizer::FlattenStaticTransformsDuplicatingSharedSubgraphsVisitor::transf
|
||||
}
|
||||
|
||||
geometry->dirtyBound();
|
||||
geometry->dirtyDisplayList();
|
||||
geometry->dirtyGLObjects();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -141,7 +141,7 @@ static void smooth_old(osg::Geometry& geom)
|
||||
}
|
||||
geom.setNormalArray( normals, osg::Array::BIND_PER_VERTEX);
|
||||
|
||||
geom.dirtyDisplayList();
|
||||
geom.dirtyGLObjects();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user