mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
don't compare modes an unnecessary second time.
This commit is contained in:
parent
1a96ab9aa9
commit
bfebff1d0a
@ -154,9 +154,6 @@ compare_to(const TextureStage &other) const {
|
|||||||
if (get_tex_view_offset() != other.get_tex_view_offset()) {
|
if (get_tex_view_offset() != other.get_tex_view_offset()) {
|
||||||
return get_tex_view_offset() < other.get_tex_view_offset() ? -1 : 1;
|
return get_tex_view_offset() < other.get_tex_view_offset() ? -1 : 1;
|
||||||
}
|
}
|
||||||
if (get_mode() != other.get_mode()) {
|
|
||||||
return get_mode() < other.get_mode() ? -1 : 1;
|
|
||||||
}
|
|
||||||
if (get_mode() == M_combine) {
|
if (get_mode() == M_combine) {
|
||||||
if (get_combine_rgb_mode() != other.get_combine_rgb_mode()) {
|
if (get_combine_rgb_mode() != other.get_combine_rgb_mode()) {
|
||||||
return get_combine_rgb_mode() < other.get_combine_rgb_mode() ? -1 : 1;
|
return get_combine_rgb_mode() < other.get_combine_rgb_mode() ? -1 : 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user