diff --git a/include/osg/TextureCubeMap b/include/osg/TextureCubeMap index 6f1de0b0b..8fea4a273 100644 --- a/include/osg/TextureCubeMap +++ b/include/osg/TextureCubeMap @@ -29,6 +29,11 @@ class SG_EXPORT TextureCubeMap : public Texture /** return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.*/ virtual int compare(const StateAttribute& rhs) const; + virtual void getAssociatedModes(std::vector& modes) const + { + modes.push_back(GL_TEXTURE_CUBE_MAP); + } + enum Face { POSITIVE_X=0, NEGATIVE_X=1,