{
init();
- _internal_state st = { NULL, texpath, false };
+ _internal_state st = { NULL, "", false };
+ st.texture_path = texpath;
_status.push_back( st );
build_ssg_state( true );
tpath.append("Textures");
tpath.append(tname);
}
- _internal_state st = { NULL, tpath.str(), false };
+ _internal_state st = { NULL, "", false };
+ st.texture_path = tpath.str();
_status.push_back( st );
}
SGPath tpath( fg_root );
tpath.append("Textures");
tpath.append(tname);
- _internal_state st = { NULL, tpath.str(), true };
+ _internal_state st = { NULL, "", true };
+ st.texture_path = tpath.str();
_status.push_back( st );
}
void SGMaterial::set_ssg_state( ssgSimpleState *s )
{
- s->ref();
- _internal_state st = { s, "", true };
+ _internal_state st = { NULL, "", true };
+ st.state = s;
+ st.state->ref();
_status.push_back( st );
}