From 8a162bc59cefc246da80d66f223a5cd545ff1dd3 Mon Sep 17 00:00:00 2001 From: Graham Linden <graham@lindenlab.com> Date: Mon, 10 Sep 2018 20:41:10 +0100 Subject: Pull fname out of class loop so we can see which actual shader file we were trying to load while debugging. --- indra/llrender/llshadermgr.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'indra/llrender') diff --git a/indra/llrender/llshadermgr.cpp b/indra/llrender/llshadermgr.cpp index 78aed5eef6..20d32612f8 100644 --- a/indra/llrender/llshadermgr.cpp +++ b/indra/llrender/llshadermgr.cpp @@ -588,10 +588,11 @@ GLhandleARB LLShaderMgr::loadShaderFile(const std::string& filename, S32 & shade S32 try_gpu_class = shader_level; S32 gpu_class; + std::stringstream fname; + //find the most relevant file for (gpu_class = try_gpu_class; gpu_class > 0; gpu_class--) - { //search from the current gpu class down to class 1 to find the most relevant shader - std::stringstream fname; + { //search from the current gpu class down to class 1 to find the most relevant shader fname << getShaderDirPrefix(); fname << gpu_class << "/" << filename; -- cgit v1.2.3