Browse Source

pgraph: sort "off" texture stages when loading from .bam

This fixes an issue where states loaded from .bam file containing more than one "off" texture stage would not compose properly.

Fixes #179
rdb 8 years ago
parent
commit
1073f5abde
1 changed files with 1 additions and 0 deletions
  1. 1 0
      panda/src/pgraph/textureAttrib.cxx

+ 1 - 0
panda/src/pgraph/textureAttrib.cxx

@@ -825,6 +825,7 @@ complete_pointers(TypedWritable **p_list, BamReader *manager) {
     }
     }
   }
   }
   _on_stages.sort();
   _on_stages.sort();
+  _off_stages.sort();
   _sort_seq = UpdateSeq::old();
   _sort_seq = UpdateSeq::old();
   _filtered_seq = UpdateSeq::old();
   _filtered_seq = UpdateSeq::old();