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
SG_USING_STD(vector);
SG_USING_STD(set);
-
+bool sgUseDisplayList = true;
\f
////////////////////////////////////////////////////////////////////////
// Global state
}
#if PLIB_VERSION > 183
- if ( model != 0 ) {
+ if ( model != 0 && sgUseDisplayList ) {
makeDList( model, ignore_branches );
}
#endif
bool
sgSetModelFilter( bool filter );
+/**
+ * Enable or disable Display list usage
+ */
+extern bool sgUseDisplayList;
+
#endif // __MODEL_HXX