Browse Source

clear _cdata pointer

David Rose 19 years ago
parent
commit
ea52930b83
1 changed files with 1 additions and 0 deletions
  1. 1 0
      panda/src/pgraph/pandaNode.cxx

+ 1 - 0
panda/src/pgraph/pandaNode.cxx

@@ -3645,6 +3645,7 @@ check_bounds() const {
     // We'll need to get a fresh read pointer, since another thread
     // We'll need to get a fresh read pointer, since another thread
     // might already have modified the pointer on the object since we
     // might already have modified the pointer on the object since we
     // queried it.
     // queried it.
+    ((PandaNodePipelineReader *)this)->_cdata = NULL;
     int pipeline_stage = _current_thread->get_pipeline_stage();
     int pipeline_stage = _current_thread->get_pipeline_stage();
     PandaNode::CDLockedStageReader fresh_cdata(_object->_cycler, pipeline_stage, _current_thread);
     PandaNode::CDLockedStageReader fresh_cdata(_object->_cycler, pipeline_stage, _current_thread);
     if (fresh_cdata->_last_update == fresh_cdata->_next_update) {
     if (fresh_cdata->_last_update == fresh_cdata->_next_update) {