work around compiler crashes

This commit is contained in:
David Rose 2001-08-05 19:23:24 +00:00
parent 6f33e34d1b
commit bf65f5baf7
2 changed files with 9 additions and 2 deletions

View File

@ -51,7 +51,9 @@ clear_current_states() {
void GeomBinBackToFront:: void GeomBinBackToFront::
record_current_state(GraphicsStateGuardian *gsg, CullState *cs, int, record_current_state(GraphicsStateGuardian *gsg, CullState *cs, int,
CullTraverser *trav) { CullTraverser *trav) {
PStatTimer timer(CullTraverser::_cull_bins_btf_pcollector); // PStatTimer timer(CullTraverser::_cull_bins_btf_pcollector);
// Using the PStatTimer may cause a compiler fault.
CullTraverser::_cull_bins_btf_pcollector.start();
// Get the transform matrix from the state. // Get the transform matrix from the state.
TransformTransition *trans_attrib = NULL; TransformTransition *trans_attrib = NULL;
@ -141,6 +143,8 @@ record_current_state(GraphicsStateGuardian *gsg, CullState *cs, int,
_node_entries.insert(NodeEntry(distance, cs, arc_chain, true)); _node_entries.insert(NodeEntry(distance, cs, arc_chain, true));
} }
CullTraverser::_cull_bins_btf_pcollector.stop();
} }
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////

View File

@ -79,7 +79,9 @@ record_current_state(GraphicsStateGuardian *, CullState *cs, int,
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
void GeomBinUnsorted:: void GeomBinUnsorted::
draw(CullTraverser *trav) { draw(CullTraverser *trav) {
PStatTimer timer(CullTraverser::_draw_pcollector); // PStatTimer timer(CullTraverser::_draw_pcollector);
// Using the PStatTimer may cause a compiler fault.
CullTraverser::_draw_pcollector.start();
GraphicsStateGuardian *gsg = trav->get_gsg(); GraphicsStateGuardian *gsg = trav->get_gsg();
@ -124,6 +126,7 @@ draw(CullTraverser *trav) {
trav->draw_direct(arc_chain, cs->get_attributes()); trav->draw_direct(arc_chain, cs->get_attributes());
} }
} }
CullTraverser::_draw_pcollector.stop();
} }
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////