Browse Source

TextureStage objects need to be reference-counted in the scene graph

David Rose 16 years ago
parent
commit
5843771931
1 changed files with 2 additions and 2 deletions
  1. 2 2
      panda/src/pgraph/textureAttrib.h

+ 2 - 2
panda/src/pgraph/textureAttrib.h

@@ -126,11 +126,11 @@ private:
   vector_int _ff_tc_index;
   vector_int _ff_tc_index;
   unsigned int _next_implicit_sort;
   unsigned int _next_implicit_sort;
   
   
-  typedef ov_set<TextureStage *> OffStages;
+  typedef ov_set<PT(TextureStage) > OffStages;
   OffStages _off_stages;
   OffStages _off_stages;
   bool _off_all_stages;
   bool _off_all_stages;
 
 
-  typedef pmap< TextureStage *, PT(Texture) > OnTextures;
+  typedef pmap<PT(TextureStage), PT(Texture) > OnTextures;
   OnTextures _on_textures;
   OnTextures _on_textures;
 
 
   typedef pmap< int, CPT(TextureAttrib) > Filtered;
   typedef pmap< int, CPT(TextureAttrib) > Filtered;