David Rose пре 24 година
родитељ
комит
cd38e2905a
3 измењених фајлова са 6 додато и 4 уклоњено
  1. 1 0
      panda/metalibs/panda/Sources.pp
  2. 3 2
      panda/src/pgraph/Sources.pp
  3. 2 2
      panda/src/pgraph/renderState.cxx

+ 1 - 0
panda/metalibs/panda/Sources.pp

@@ -9,6 +9,7 @@
 #define USE_NET yes
 #define USE_NET yes
 
 
 #define COMPONENT_LIBS \
 #define COMPONENT_LIBS \
+    pgraph \
     pvrpn grutil chan chancfg pstatclient \
     pvrpn grutil chan chancfg pstatclient \
     char chat collide cull device \
     char chat collide cull device \
     dgraph display gobj graph gsgbase \
     dgraph display gobj graph gsgbase \

+ 3 - 2
panda/src/pgraph/Sources.pp

@@ -19,8 +19,9 @@
     renderState.h renderState.I \
     renderState.h renderState.I \
     textureAttrib.h textureAttrib.I
     textureAttrib.h textureAttrib.I
     
     
-// #define INCLUDED_SOURCES
-  #define SOURCES $[SOURCES] \
+  #define COMBINED_SOURCES $[TARGET]_composite1.cxx $[TARGET]_composite2.cxx    
+//  #define SOURCES $[SOURCES] \
+  #define INCLUDED_SOURCES \
     colorAttrib.cxx \
     colorAttrib.cxx \
     config_pgraph.cxx \
     config_pgraph.cxx \
     cycleData.cxx \
     cycleData.cxx \

+ 2 - 2
panda/src/pgraph/renderState.cxx

@@ -100,7 +100,7 @@ RenderState::
 
 
       // We should never have a reflexive entry in this map.  If we
       // We should never have a reflexive entry in this map.  If we
       // do, something got screwed up elsewhere.
       // do, something got screwed up elsewhere.
-      nassertv(other != this);
+      nassertv(other != (const RenderState *)this);
       
       
       // Now we're holding a reference count to the other state, as well
       // Now we're holding a reference count to the other state, as well
       // as to the computed result (if any), so neither object will be
       // as to the computed result (if any), so neither object will be
@@ -281,7 +281,7 @@ compose(const RenderState *other) const {
     CPT(RenderState) result = do_compose(this);
     CPT(RenderState) result = do_compose(this);
     ((RenderState *)this)->_self_compose = result;
     ((RenderState *)this)->_self_compose = result;
 
 
-    if (result != this) {
+    if (result != (const RenderState *)this) {
       // If the result of compose(this) is something other than this,
       // If the result of compose(this) is something other than this,
       // explicitly increment the reference count.  We have to be sure
       // explicitly increment the reference count.  We have to be sure
       // to decrement it again later, in our destructor.
       // to decrement it again later, in our destructor.