summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorJonathan "Geenz" Goodman <geenz@geenzo.com>2024-02-07 00:17:10 -0800
committerJonathan "Geenz" Goodman <geenz@geenzo.com>2024-02-07 00:17:10 -0800
commit4ddad4cd4365259d9ac90104c8fe946edabe025b (patch)
tree0299ea6076cc510169accebc52dd13ba7ebf093e /indra/newview
parent739ff27c0649af9c74e00f31934d89405ff14373 (diff)
parentb0c7dc653dc730f1f95aa95fc6df876dfe7b04a0 (diff)
Merge branch 'materials_featurette/mirrors' into geenz/mirror-masking
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llviewershadermgr.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/newview/llviewershadermgr.cpp b/indra/newview/llviewershadermgr.cpp
index 164b36af65..91983f6603 100644
--- a/indra/newview/llviewershadermgr.cpp
+++ b/indra/newview/llviewershadermgr.cpp
@@ -240,6 +240,9 @@ static bool make_rigged_variant(LLGLSLShader& shader, LLGLSLShader& riggedShader
return riggedShader.createShader(NULL, NULL);
}
+#ifdef SHOW_ASSERT
+// return true if there are no redundant shaders in the given vector
+// also checks for redundant variants
static bool no_redundant_shaders(const std::vector<LLGLSLShader*>& shaders)
{
std::set<std::string> names;
@@ -264,6 +267,7 @@ static bool no_redundant_shaders(const std::vector<LLGLSLShader*>& shaders)
}
return true;
}
+#endif
LLViewerShaderMgr::LLViewerShaderMgr() :