From 1073f5abded8b7c406945bf502a203211778f8d8 Mon Sep 17 00:00:00 2001 From: rdb Date: Wed, 3 Jan 2018 14:29:03 +0100 Subject: [PATCH] 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 --- panda/src/pgraph/textureAttrib.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/panda/src/pgraph/textureAttrib.cxx b/panda/src/pgraph/textureAttrib.cxx index 9b30906e1f..ee3c5a8165 100644 --- a/panda/src/pgraph/textureAttrib.cxx +++ b/panda/src/pgraph/textureAttrib.cxx @@ -825,6 +825,7 @@ complete_pointers(TypedWritable **p_list, BamReader *manager) { } } _on_stages.sort(); + _off_stages.sort(); _sort_seq = UpdateSeq::old(); _filtered_seq = UpdateSeq::old();