From: ehofman Date: Tue, 2 Mar 2004 14:49:01 +0000 (+0000) Subject: MSVC fixes X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=58a0b1d2c3e418db3e82923bdfb99995a143b643;p=simgear.git MSVC fixes --- diff --git a/simgear/scene/material/mat.cxx b/simgear/scene/material/mat.cxx index 3ae2d37d..83917934 100644 --- a/simgear/scene/material/mat.cxx +++ b/simgear/scene/material/mat.cxx @@ -59,7 +59,8 @@ SGMaterial::SGMaterial( const string &texpath ) { init(); - _internal_state st = { NULL, texpath, false }; + _internal_state st = { NULL, "", false }; + st.texture_path = texpath; _status.push_back( st ); build_ssg_state( true ); @@ -104,7 +105,8 @@ SGMaterial::read_properties( const string &fg_root, const SGPropertyNode * props 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 ); } @@ -113,7 +115,8 @@ SGMaterial::read_properties( const string &fg_root, const SGPropertyNode * props 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 ); } @@ -265,8 +268,9 @@ SGMaterial::build_ssg_state( bool defer_tex_load ) 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 ); }