diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/model/material.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/model/material.cc b/src/model/material.cc index f9f330d..416e491 100644 --- a/src/model/material.cc +++ b/src/model/material.cc @@ -80,6 +80,8 @@ void Material::init() while (shaderlist.getline(line, 1023)) { if ((line[0] == 0) || (line[0] == '#') || (line[0] == ';')) { continue; + if ((line[0] == '/') && (line[1] == '/')) + continue; } else { std::string s(line); aux::trim(s); @@ -135,8 +137,10 @@ void Material::load_shader(const std::string &shadername) std::string firstword; if (linestream >> firstword) { + if (firstword.compare("//") == 0) { + continue; - if (firstword.compare("}") == 0) { + } else if (firstword.compare("}") == 0) { parselevel--; } else if (firstword.compare("{") == 0) { |