mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
work around compiler crashes
This commit is contained in:
parent
6f33e34d1b
commit
bf65f5baf7
@ -51,7 +51,9 @@ clear_current_states() {
|
||||
void GeomBinBackToFront::
|
||||
record_current_state(GraphicsStateGuardian *gsg, CullState *cs, int,
|
||||
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.
|
||||
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));
|
||||
}
|
||||
|
||||
CullTraverser::_cull_bins_btf_pcollector.stop();
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
@ -79,7 +79,9 @@ record_current_state(GraphicsStateGuardian *, CullState *cs, int,
|
||||
////////////////////////////////////////////////////////////////////
|
||||
void GeomBinUnsorted::
|
||||
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();
|
||||
|
||||
@ -124,6 +126,7 @@ draw(CullTraverser *trav) {
|
||||
trav->draw_direct(arc_chain, cs->get_attributes());
|
||||
}
|
||||
}
|
||||
CullTraverser::_draw_pcollector.stop();
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
x
Reference in New Issue
Block a user