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