diff --git a/panda/src/pgraph/textureAttrib.cxx b/panda/src/pgraph/textureAttrib.cxx index c5f6ce8151..47f159f973 100644 --- a/panda/src/pgraph/textureAttrib.cxx +++ b/panda/src/pgraph/textureAttrib.cxx @@ -535,7 +535,7 @@ compose_impl(const RenderAttrib *other) const { } else { // (*bi).first == (*ai).first // Here is a stage we have in both. - *result = *ai; + *result = *bi; new_attrib->_on_stages.push_back((*ai).first); ++ai; ++bi; @@ -562,7 +562,7 @@ compose_impl(const RenderAttrib *other) const { } else { // Here is a stage we have in both. - *result = *ai; + *result = *bi; new_attrib->_on_stages.push_back((*ai).first); ++ai; ++bi;