@@ -42,32 +42,32 @@ template <class T> IC bool cmp_ps_val_ssa(const T &lhs, const T &rhs)
4242
4343template <class T > IC bool cmp_textures_lex2 (const T &lhs, const T &rhs)
4444{
45- auto t1 = * lhs->key ;
46- auto t2 = * rhs->key ;
45+ auto t1 = lhs->key ;
46+ auto t2 = rhs->key ;
4747
48- if (t1 [0 ] < t2 [0 ]) return true ;
49- if (t1 [0 ] > t2 [0 ]) return false ;
50- if (t1 [1 ] < t2 [1 ]) return true ;
48+ if ((*t1) [0 ] < (*t2) [0 ]) return true ;
49+ if ((*t1) [0 ] > (*t2) [0 ]) return false ;
50+ if ((*t1) [1 ] < (*t2) [1 ]) return true ;
5151 else return false ;
5252}
5353template <class T > IC bool cmp_textures_lex3 (const T &lhs, const T &rhs)
5454{
55- auto t1 = * lhs->key ;
56- auto t2 = * rhs->key ;
57-
58- if (t1 [0 ] < t2 [0 ]) return true ;
59- if (t1 [0 ] > t2 [0 ]) return false ;
60- if (t1 [1 ] < t2 [1 ]) return true ;
61- if (t1 [1 ] > t2 [1 ]) return false ;
62- if (t1 [2 ] < t2 [2 ]) return true ;
55+ auto t1 = lhs->key ;
56+ auto t2 = rhs->key ;
57+
58+ if ((*t1) [0 ] < (*t2) [0 ]) return true ;
59+ if ((*t1) [0 ] > (*t2) [0 ]) return false ;
60+ if ((*t1) [1 ] < (*t2) [1 ]) return true ;
61+ if ((*t1) [1 ] > (*t2) [1 ]) return false ;
62+ if ((*t1) [2 ] < (*t2) [2 ]) return true ;
6363 else return false ;
6464}
6565template <class T > IC bool cmp_textures_lexN (const T &lhs, const T &rhs)
6666{
67- auto t1 = * lhs->key ;
68- auto t2 = * rhs->key ;
67+ auto t1 = lhs->key ;
68+ auto t2 = rhs->key ;
6969
70- return std::lexicographical_compare (t1. begin (), t1. end (), t2. begin (), t2. end ());
70+ return std::lexicographical_compare (t1-> begin (), t1-> end (), t2-> begin (), t2-> end ());
7171}
7272
7373template <class T > void sort_tlist (xr_vector<T::template TNode*, render_alloc<T::template TNode*>>& lst, T& textures)
0 commit comments