On Thursday 29 November 2007 16:34, Torsten Dreyer wrote: > Am Donnerstag, 29. November 2007 14:44 schrieb Hans Fugal: > > Is there not a way to sanity check the cloud cache size in the plib > > version before going ahead and segfaulting? Like notice that it's 0 > > and set it to the lowest valid value. It seems that this would be a > > simple fix, and that there's really no excuse not to do it. Unless, of > > course, there is a real excuse... > > This should do the trick: Instead of doing nothing when setting a new value > to zero, the resolution and cacheSize is set to it's default value when > trying to set it to zero. > > It works on my copy, but maybe one of the screnegraph experts should > comment this. > > Torsten >
I decided to go ahead and commit this, even though I haven't seen any further comment from a scenegraph expert. The patch seems simple enough, and preventing program crashes would make it worthwhile. If there is breakage, it seems easy enough to revert. :-) Cheers, Durk ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel