Skip to content
Snippets Groups Projects
Commit 6883c6b1 authored by Oz Linden's avatar Oz Linden
Browse files

replace a 'continue' with an 'else'

parent 193dadb6
No related branches found
No related tags found
No related merge requests found
...@@ -811,25 +811,26 @@ GLhandleARB LLShaderMgr::loadShaderFile(const std::string& filename, S32 & shade ...@@ -811,25 +811,26 @@ GLhandleARB LLShaderMgr::loadShaderFile(const std::string& filename, S32 & shade
flags &= ~flag_write_to_out_of_extra_block_area; flags &= ~flag_write_to_out_of_extra_block_area;
flags |= flag_extra_block_marker_was_found; flags |= flag_extra_block_marker_was_found;
continue;
} }
else
shader_code_text[shader_code_count] = (GLcharARB *)strdup((char *)buff); {
shader_code_text[shader_code_count] = (GLcharARB *)strdup((char *)buff);
if(flag_write_to_out_of_extra_block_area & flags) 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[extra_code_count + start_shader_code + out_of_extra_block_counter]
= shader_code_text[shader_code_count]; = shader_code_text[shader_code_count];
out_of_extra_block_counter++; out_of_extra_block_counter++;
if(out_of_extra_block_counter == extra_code_count) if(out_of_extra_block_counter == extra_code_count)
{ {
shader_code_count += extra_code_count; shader_code_count += extra_code_count;
flags &= ~flag_write_to_out_of_extra_block_area; flags &= ~flag_write_to_out_of_extra_block_area;
} }
} }
++shader_code_count; ++shader_code_count;
}
} //while } //while
if(!(flag_extra_block_marker_was_found & flags)) if(!(flag_extra_block_marker_was_found & flags))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment