Fixed texture optimization problem associated with mixing already compiled scene graphs - resulting

in incorrect texture assignment.  Solution was to a compareTextureObjects() test to the Texture*::compare(..) method that
the osgUtil::Optimizer::StateSetVisitor uses to determine uniqueness.
This commit is contained in:
Robert Osfield
2006-08-14 19:42:22 +00:00
parent fb27b27e5e
commit be60b32add
7 changed files with 73 additions and 0 deletions

View File

@@ -599,6 +599,9 @@ class OSG_EXPORT Texture : public osg::StateAttribute
/** Returns -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. */
int compareTexture(const Texture& rhs) const;
/** Returns -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. */
int compareTextureObjects(const Texture& rhs) const;
typedef buffered_value<unsigned int> TexParameterDirtyList;
mutable TexParameterDirtyList _texParametersDirtyList;