From e8fa4a58670e74aa0744e289490562b47a7589a8 Mon Sep 17 00:00:00 2001 From: LafuenteAstronomy <56778509+LafuenteAstronomy@users.noreply.github.com> Date: Thu, 9 Apr 2020 06:33:49 +0800 Subject: [PATCH] Update shadermanager.cpp One of the new Celestia updates that I will add to Gurren's Cel+ project to make it as updated in the development sector as possible --- src/celengine/shadermanager.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/celengine/shadermanager.cpp b/src/celengine/shadermanager.cpp index 75fa64004b..61c44f2945 100644 --- a/src/celengine/shadermanager.cpp +++ b/src/celengine/shadermanager.cpp @@ -254,6 +254,11 @@ ShaderProperties::usesTangentSpaceLighting() const bool operator<(const ShaderProperties& p0, const ShaderProperties& p1) { + if (p0.simpleProps < p1.simpleProps) + return true; + if (p1.simpleProps < p0.simpleProps) + return false; + if (p0.texUsage < p1.texUsage) return true; if (p1.texUsage < p0.texUsage)