Browse Source

correct old usage

David Rose 19 years ago
parent
commit
f26a291ad5
2 changed files with 3 additions and 1 deletions
  1. 1 1
      panda/src/pgraph/light.cxx
  2. 2 0
      panda/src/pgraph/light.h

+ 1 - 1
panda/src/pgraph/light.cxx

@@ -100,7 +100,7 @@ get_vector_to_light(LVector3f &, const LPoint3f &, const LMatrix4f &) {
 ////////////////////////////////////////////////////////////////////
 GeomNode *Light::
 get_viz() {
-  CDReader cdata(_cycler);
+  CDLockedReader cdata(_cycler);
   if (cdata->_viz_geom_stale) {
     CDWriter cdata_w(_cycler, cdata);
 

+ 2 - 0
panda/src/pgraph/light.h

@@ -25,6 +25,7 @@
 #include "luse.h"
 #include "cycleData.h"
 #include "cycleDataReader.h"
+#include "cycleDataLockedReader.h"
 #include "cycleDataWriter.h"
 #include "pipelineCycler.h"
 #include "updateSeq.h"
@@ -118,6 +119,7 @@ private:
 
   PipelineCycler<CData> _cycler;
   typedef CycleDataReader<CData> CDReader;
+  typedef CycleDataLockedReader<CData> CDLockedReader;
   typedef CycleDataWriter<CData> CDWriter;
 
 protected: