don't compare modes an unnecessary second time.

This commit is contained in:
rdb 2014-02-15 16:14:21 +00:00
parent 1a96ab9aa9
commit bfebff1d0a

View File

@ -154,9 +154,6 @@ compare_to(const TextureStage &other) const {
if (get_tex_view_offset() != other.get_tex_view_offset()) {
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_combine_rgb_mode() != other.get_combine_rgb_mode()) {
return get_combine_rgb_mode() < other.get_combine_rgb_mode() ? -1 : 1;