Add const back in the function

This commit is contained in:
ehofman
2004-03-03 19:54:24 +00:00
parent a0251b3256
commit ed29944b91
2 changed files with 2 additions and 2 deletions

View File

@@ -201,7 +201,7 @@ SGMaterial::load_texture ( int n )
}
ssgSimpleState *
SGMaterial::get_state (int n)
SGMaterial::get_state (int n) const
{
if (_status.size() == 0) {
SG_LOG( SG_GENERAL, SG_WARN, "No state available.");

View File

@@ -117,7 +117,7 @@ public:
/**
* Get the textured state.
*/
virtual ssgSimpleState *get_state (int n = -1);
virtual ssgSimpleState *get_state (int n = -1) const;
/**