Commit 1738d431 authored by Mathias Goldau's avatar Mathias Goldau
Browse files

[CHANGE] Made the getTexture2() member function const.

parent d846424c
......@@ -66,7 +66,7 @@ boost::shared_ptr< WDataTexture3D > WDataSet::getTexture()
throw WDHException( std::string( "This dataset does not provide a texture." ) );
}
osg::ref_ptr< WDataTexture3D_2 > WDataSet::getTexture2()
osg::ref_ptr< WDataTexture3D_2 > WDataSet::getTexture2() const
{
throw WDHException( std::string( "This dataset does not provide a texture." ) );
}
......
......@@ -103,7 +103,7 @@ public:
*
* \return The texture.
*/
virtual osg::ref_ptr< WDataTexture3D_2 > getTexture2();
virtual osg::ref_ptr< WDataTexture3D_2 > getTexture2() const;
/**
* Gets the name of this prototype.
......
......@@ -98,7 +98,7 @@ boost::shared_ptr< WDataTexture3D > WDataSetSingle::getTexture()
return m_texture3D;
}
osg::ref_ptr< WDataTexture3D_2 > WDataSetSingle::getTexture2()
osg::ref_ptr< WDataTexture3D_2 > WDataSetSingle::getTexture2() const
{
return m_texture;
}
......
......@@ -114,7 +114,7 @@ public:
*
* \return the texture.
*/
virtual osg::ref_ptr< WDataTexture3D_2 > getTexture2();
virtual osg::ref_ptr< WDataTexture3D_2 > getTexture2() const;
/**
* Gets the name of this prototype.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment