ref() the cloud states before use so that if we are dyanmically creating and

deleting cloud layers we don't inadvertantly delete a cloud state.
This commit is contained in:
curt
2002-10-02 16:03:25 +00:00
parent 87e38e2617
commit 5c61e97358

View File

@@ -368,5 +368,9 @@ ssgSimpleState *SGCloudMakeState( const string &path ) {
state->enable( GL_ALPHA_TEST );
state->setAlphaClamp( 0.01 );
// ref() the state so it doesn't get deleted if the last layer of
// it's type is deleted.
state->ref();
return state;
}