I guess we have to ref() ssgStateTable as well as ssgSimpleState.
This commit is contained in:
parent
806511bd99
commit
445c4bbdb1
1 changed files with 3 additions and 0 deletions
|
@ -75,6 +75,7 @@ void FGNewMat::build_ssg_state( const string& path,
|
|||
tex_file.append( texture_name );
|
||||
|
||||
state = new ssgStateSelector(2);
|
||||
state->ref();
|
||||
|
||||
textured = new ssgSimpleState();
|
||||
textured->ref();
|
||||
|
@ -133,6 +134,8 @@ void FGNewMat::build_ssg_state( const string& path,
|
|||
|
||||
void FGNewMat::set_ssg_state( ssgSimpleState *s ) {
|
||||
state = new ssgStateSelector(2);
|
||||
state->ref();
|
||||
|
||||
textured = s;
|
||||
|
||||
nontextured = new ssgSimpleState();
|
||||
|
|
Loading…
Add table
Reference in a new issue