]> git.mxchange.org Git - simgear.git/commitdiff
Make material get helper function static.
authorfrohlich <frohlich>
Fri, 27 Feb 2009 19:30:28 +0000 (19:30 +0000)
committerTim Moore <timoore@redhat.com>
Fri, 27 Feb 2009 22:34:15 +0000 (23:34 +0100)
Modified Files:
  simgear/scene/material/matlib.cxx
  simgear/scene/material/matlib.hxx

simgear/scene/material/matlib.cxx
simgear/scene/material/matlib.hxx

index 6aa82d4ef39df443bda6418feb1a646527be4cc6..484e0783b3ade1a220f3e1cf7e12ee9e06242dd8 100644 (file)
@@ -175,7 +175,7 @@ SGMaterialLib::~SGMaterialLib ( void ) {
 }
 
 const SGMaterial*
-SGMaterialLib::findMaterial(const osg::StateSet* stateSet) const
+SGMaterialLib::findMaterial(const osg::StateSet* stateSet)
 {
   if (!stateSet)
     return 0;
index 94f478817797d578fbe5c9fc1925a6d2e690fab4..f1970985bcfba7a9899022da5c61ffc8107cca2f 100644 (file)
@@ -83,7 +83,7 @@ public:
     material_map_iterator end() { return matlib.end(); }
     const_material_map_iterator end() const { return matlib.end(); }
 
-    const SGMaterial* findMaterial(const osg::StateSet* stateSet) const;
+    static const SGMaterial* findMaterial(const osg::StateSet* stateSet);
 
     // Destructor
     ~SGMaterialLib ( void );