summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2017-09-14 16:56:51 -0400
committerOz Linden <oz@lindenlab.com>2017-09-14 16:56:51 -0400
commit6883c6b1f689335963775b43d109a93eb46e6b2f (patch)
treed8b7b762cfe21b331e5ece6b5f02412d739db7d2 /indra
parent193dadb62c39640efdc32215c30046ab66aa53a3 (diff)
replace a 'continue' with an 'else'
Diffstat (limited to 'indra')
-rw-r--r--indra/llrender/llshadermgr.cpp31
1 files changed, 16 insertions, 15 deletions
diff --git a/indra/llrender/llshadermgr.cpp b/indra/llrender/llshadermgr.cpp
index 19a9ced321..07356940f1 100644
--- a/indra/llrender/llshadermgr.cpp
+++ b/indra/llrender/llshadermgr.cpp
@@ -811,25 +811,26 @@ GLhandleARB LLShaderMgr::loadShaderFile(const std::string& filename, S32 & shade
flags &= ~flag_write_to_out_of_extra_block_area;
flags |= flag_extra_block_marker_was_found;
- continue;
}
-
- shader_code_text[shader_code_count] = (GLcharARB *)strdup((char *)buff);
+ else
+ {
+ shader_code_text[shader_code_count] = (GLcharARB *)strdup((char *)buff);
- if(flag_write_to_out_of_extra_block_area & flags)
- {
- shader_code_text[extra_code_count + start_shader_code + out_of_extra_block_counter]
- = shader_code_text[shader_code_count];
- out_of_extra_block_counter++;
+ if(flag_write_to_out_of_extra_block_area & flags)
+ {
+ shader_code_text[extra_code_count + start_shader_code + out_of_extra_block_counter]
+ = shader_code_text[shader_code_count];
+ out_of_extra_block_counter++;
- if(out_of_extra_block_counter == extra_code_count)
- {
- shader_code_count += extra_code_count;
- flags &= ~flag_write_to_out_of_extra_block_area;
- }
- }
+ if(out_of_extra_block_counter == extra_code_count)
+ {
+ shader_code_count += extra_code_count;
+ flags &= ~flag_write_to_out_of_extra_block_area;
+ }
+ }
- ++shader_code_count;
+ ++shader_code_count;
+ }
} //while
if(!(flag_extra_block_marker_was_found & flags))