summaryrefslogtreecommitdiff
path: root/indra/llrender
diff options
context:
space:
mode:
authorGraham Linden <graham@lindenlab.com>2018-09-10 21:18:37 +0100
committerGraham Linden <graham@lindenlab.com>2018-09-10 21:18:37 +0100
commitef2c61275eafa7d1fd3afa3f0eb76397632f12c9 (patch)
tree728192427c67351ac113953a0e1a5fe5ec331b8b /indra/llrender
parent8a162bc59cefc246da80d66f223a5cd545ff1dd3 (diff)
Move fname back inside class loop. grumble stringstream grumble.
Fix sky depth-testing with advanced atmospherics.
Diffstat (limited to 'indra/llrender')
-rw-r--r--indra/llrender/llshadermgr.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/indra/llrender/llshadermgr.cpp b/indra/llrender/llshadermgr.cpp
index 20d32612f8..78aed5eef6 100644
--- a/indra/llrender/llshadermgr.cpp
+++ b/indra/llrender/llshadermgr.cpp
@@ -588,11 +588,10 @@ 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
+ { //search from the current gpu class down to class 1 to find the most relevant shader
+ std::stringstream fname;
fname << getShaderDirPrefix();
fname << gpu_class << "/" << filename;