mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
oops, sorting texture stages in wrong direction by sort
This commit is contained in:
parent
4f8dcaf407
commit
3dd3c1aa44
@ -279,7 +279,7 @@ operator () (const TextureAttrib::OnStageNode &a,
|
||||
return a._stage->get_priority() > b._stage->get_priority();
|
||||
}
|
||||
if (a._stage->get_sort() != b._stage->get_sort()) {
|
||||
return a._stage->get_sort() > b._stage->get_sort();
|
||||
return a._stage->get_sort() < b._stage->get_sort();
|
||||
}
|
||||
return a._implicit_sort < b._implicit_sort;
|
||||
}
|
||||
@ -294,7 +294,7 @@ INLINE bool TextureAttrib::CompareTextureStageSort::
|
||||
operator () (const TextureAttrib::OnStageNode &a,
|
||||
const TextureAttrib::OnStageNode &b) const {
|
||||
if (a._stage->get_sort() != b._stage->get_sort()) {
|
||||
return a._stage->get_sort() > b._stage->get_sort();
|
||||
return a._stage->get_sort() < b._stage->get_sort();
|
||||
}
|
||||
return a._implicit_sort < b._implicit_sort;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user