Browse Source

oops, const not declared properly

David Rose 24 years ago
parent
commit
501ee98985
2 changed files with 8 additions and 5 deletions
  1. 4 3
      panda/src/effects/lensFlareNode.cxx
  2. 4 2
      panda/src/effects/lensFlareNode.h

+ 4 - 3
panda/src/effects/lensFlareNode.cxx

@@ -266,8 +266,8 @@ prepare_blind(const float &angle, const float &tnear)
 //  Description:
 //  Description:
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 void LensFlareNode::
 void LensFlareNode::
-render_child(RenderRelation *arc,
-             AllTransitionsWrapper &trans, GraphicsStateGuardian *gsg)
+render_child(RenderRelation *arc, const AllTransitionsWrapper &trans,
+             GraphicsStateGuardian *gsg)
 {
 {
 
 
   AllTransitionsWrapper new_trans(trans);
   AllTransitionsWrapper new_trans(trans);
@@ -290,7 +290,8 @@ render_child(RenderRelation *arc,
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 void LensFlareNode::
 void LensFlareNode::
 render_children(const vector_relation &arcs, 
 render_children(const vector_relation &arcs, 
-                AllTransitionsWrapper &trans, GraphicsStateGuardian *gsg)
+                const AllTransitionsWrapper &trans,
+                GraphicsStateGuardian *gsg)
 {
 {
   for(int i = 0; i < (int)arcs.size(); i++)
   for(int i = 0; i < (int)arcs.size(); i++)
   {
   {

+ 4 - 2
panda/src/effects/lensFlareNode.h

@@ -98,9 +98,11 @@ private:
 
 
 
 
   void render_child(RenderRelation *arc,
   void render_child(RenderRelation *arc,
-                    AllTransitionsWrapper &trans, GraphicsStateGuardian *gsg);
+                    const AllTransitionsWrapper &trans,
+                    GraphicsStateGuardian *gsg);
   void render_children(const vector_relation &arcs,
   void render_children(const vector_relation &arcs,
-                       AllTransitionsWrapper &trans, GraphicsStateGuardian *gsg);
+                       const AllTransitionsWrapper &trans,
+                       GraphicsStateGuardian *gsg);
 
 
 public:
 public:
   static void register_with_read_factory();
   static void register_with_read_factory();