Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2009-08-12 15:48:03 +0000
committerStijn Buys <ingar@osirion.org>2009-08-12 15:48:03 +0000
commit83b66522dfcad1b2428ce4fd81d83e39a051a4c5 (patch)
treed3b961b130e87a891ac2f64106e56bb65e9ee548 /src/model/material.cc
parente8f928ab56d581cb06ec10c2da2cb6706bca6bb3 (diff)
documentation update
Diffstat (limited to 'src/model/material.cc')
-rw-r--r--src/model/material.cc6
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) {