Skip to content

Commit c19ac81

Browse files
intorrXottab-DUTY
authored andcommitted
Fix spamming of: Failed to find compiled list of textures.
1 parent c99361a commit c19ac81

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

src/Layers/xrRender/r__dsgraph_render.cpp

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -42,32 +42,32 @@ template <class T> IC bool cmp_ps_val_ssa(const T &lhs, const T &rhs)
4242

4343
template <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
}
5353
template <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
}
6565
template <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

7373
template <class T> void sort_tlist(xr_vector<T::template TNode*, render_alloc<T::template TNode*>>& lst, T& textures)

0 commit comments

Comments
 (0)