Frederic Bouvier:

This is a patch to make display list usage optional. They are on by default.
Use --prop:/sim/rendering/use-display-list=false to use immediate mode.
There is also a change in exception handling in main.cxx and bootstrap.cxx
This commit is contained in:
ehofman 2004-10-17 17:06:50 +00:00
parent ba1b96e518
commit 39f3c6e41d
2 changed files with 7 additions and 2 deletions

View File

@ -29,7 +29,7 @@
SG_USING_STD(vector);
SG_USING_STD(set);
bool sgUseDisplayList = true;
////////////////////////////////////////////////////////////////////////
// Global state
@ -329,7 +329,7 @@ sgLoad3DModel( const string &fg_root, const string &path,
}
#if PLIB_VERSION > 183
if ( model != 0 ) {
if ( model != 0 && sgUseDisplayList ) {
makeDList( model, ignore_branches );
}
#endif

View File

@ -74,4 +74,9 @@ sgMakeAnimation( ssgBranch * model,
bool
sgSetModelFilter( bool filter );
/**
* Enable or disable Display list usage
*/
extern bool sgUseDisplayList;
#endif // __MODEL_HXX