From f26a291ad58a49d633247b901c39fcb1e5e2fa81 Mon Sep 17 00:00:00 2001 From: David Rose Date: Fri, 9 Jun 2006 17:57:40 +0000 Subject: [PATCH] correct old usage --- panda/src/pgraph/light.cxx | 2 +- panda/src/pgraph/light.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/panda/src/pgraph/light.cxx b/panda/src/pgraph/light.cxx index a1e8d7126a..5ae982a62c 100644 --- a/panda/src/pgraph/light.cxx +++ b/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); diff --git a/panda/src/pgraph/light.h b/panda/src/pgraph/light.h index 23b3939ffb..c7fe4177ee 100644 --- a/panda/src/pgraph/light.h +++ b/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 _cycler; typedef CycleDataReader CDReader; + typedef CycleDataLockedReader CDLockedReader; typedef CycleDataWriter CDWriter; protected: