We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 511b0c1 commit 9c4151cCopy full SHA for 9c4151c
panda/src/pgraph/textureAttrib.I
@@ -263,7 +263,7 @@ on_stage_affects_alpha(size_t n) const {
263
*/
264
INLINE void TextureAttrib::
265
check_sorted() const {
266
- if (_sort_seq != TextureStage::get_sort_seq()) {
+ if (_sort_seq != TextureStage::get_sort_seq() && !_sort_seq.is_fresh()) {
267
((TextureAttrib *)this)->sort_on_stages();
268
}
269
panda/src/pgraph/textureAttrib.cxx
@@ -807,6 +807,9 @@ get_auto_shader_attrib_impl(const RenderState *state) const {
807
808
809
810
+ // Prevent check_sorted() from being called on this state.
811
+ attrib->_sort_seq = UpdateSeq::fresh();
812
+
813
return return_new(attrib);
814
815
0 commit comments