From 3dd3c1aa44c993dca4ce865424df4ea62fb8d607 Mon Sep 17 00:00:00 2001 From: David Rose Date: Thu, 1 May 2008 22:42:56 +0000 Subject: [PATCH] oops, sorting texture stages in wrong direction by sort --- panda/src/pgraph/textureAttrib.I | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/panda/src/pgraph/textureAttrib.I b/panda/src/pgraph/textureAttrib.I index 57c9a34ade..46a0ac7e91 100644 --- a/panda/src/pgraph/textureAttrib.I +++ b/panda/src/pgraph/textureAttrib.I @@ -279,7 +279,7 @@ operator () (const TextureAttrib::OnStageNode &a, return a._stage->get_priority() > b._stage->get_priority(); } if (a._stage->get_sort() != b._stage->get_sort()) { - return a._stage->get_sort() > b._stage->get_sort(); + return a._stage->get_sort() < b._stage->get_sort(); } return a._implicit_sort < b._implicit_sort; } @@ -294,7 +294,7 @@ INLINE bool TextureAttrib::CompareTextureStageSort:: operator () (const TextureAttrib::OnStageNode &a, const TextureAttrib::OnStageNode &b) const { if (a._stage->get_sort() != b._stage->get_sort()) { - return a._stage->get_sort() > b._stage->get_sort(); + return a._stage->get_sort() < b._stage->get_sort(); } return a._implicit_sort < b._implicit_sort; }