Skip to content

Commit

Permalink
Fix spamming of: Failed to find compiled list of textures.
Browse files Browse the repository at this point in the history
  • Loading branch information
intorr authored and Xottab-DUTY committed Dec 12, 2017
1 parent c99361a commit c19ac81
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions src/Layers/xrRender/r__dsgraph_render.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,32 +42,32 @@ template <class T> IC bool cmp_ps_val_ssa(const T &lhs, const T &rhs)

template <class T> IC bool cmp_textures_lex2(const T &lhs, const T &rhs)
{
auto t1 = *lhs->key;
auto t2 = *rhs->key;
auto t1 = lhs->key;
auto t2 = rhs->key;

if (t1[0] < t2[0]) return true;
if (t1[0] > t2[0]) return false;
if (t1[1] < t2[1]) return true;
if ((*t1)[0] < (*t2)[0]) return true;
if ((*t1)[0] > (*t2)[0]) return false;
if ((*t1)[1] < (*t2)[1]) return true;
else return false;
}
template <class T> IC bool cmp_textures_lex3(const T &lhs, const T &rhs)
{
auto t1 = *lhs->key;
auto t2 = *rhs->key;

if (t1[0] < t2[0]) return true;
if (t1[0] > t2[0]) return false;
if (t1[1] < t2[1]) return true;
if (t1[1] > t2[1]) return false;
if (t1[2] < t2[2]) return true;
auto t1 = lhs->key;
auto t2 = rhs->key;

if ((*t1)[0] < (*t2)[0]) return true;
if ((*t1)[0] > (*t2)[0]) return false;
if ((*t1)[1] < (*t2)[1]) return true;
if ((*t1)[1] > (*t2)[1]) return false;
if ((*t1)[2] < (*t2)[2]) return true;
else return false;
}
template <class T> IC bool cmp_textures_lexN(const T &lhs, const T &rhs)
{
auto t1 = *lhs->key;
auto t2 = *rhs->key;
auto t1 = lhs->key;
auto t2 = rhs->key;

return std::lexicographical_compare(t1.begin(), t1.end(), t2.begin(), t2.end());
return std::lexicographical_compare(t1->begin(), t1->end(), t2->begin(), t2->end());
}

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

0 comments on commit c19ac81

Please sign in to comment.