From: ehofman Date: Sun, 10 Oct 2004 19:38:46 +0000 (+0000) Subject: Adding the panel was a step too far for Linux, causing a segfault. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=41eed484c1393aab204ea661f903fba1ccdeb59a;hp=7d18f9bddedba156662da72e2386b00a6d29bf76;p=simgear.git Adding the panel was a step too far for Linux, causing a segfault. --- diff --git a/simgear/scene/model/model.cxx b/simgear/scene/model/model.cxx index ddfff646..9ae4caae 100644 --- a/simgear/scene/model/model.cxx +++ b/simgear/scene/model/model.cxx @@ -271,6 +271,11 @@ sgLoad3DModel( const string &fg_root, const string &path, throw sg_exception("Failed to load 3D model"); } +#if PLIB_VERSION > 183 + if ( model != 0 ) { + makeDList( model ); + } +#endif // Set up the alignment node ssgTransform * alignmainmodel = new ssgTransform; if ( load_panel == 0 ) @@ -332,7 +337,7 @@ sgLoad3DModel( const string &fg_root, const string &path, sim_time_sec); } -#if PLIB_VERSION > 183 +#if 0 if ( model != 0 ) { makeDList( model ); }