Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 832 vs 839 for /trunk/Source Code/Platform/Video/OpenGL/Shaders/glShader.cpp

Diff revisions: vs.
  @@ -77,6 +77,7 @@
77 77 return false;
78 78 }
79 79
80 + _usedAtoms.clear();
80 81 stringImpl parsedSource = _skipIncludes ? source
81 82 : preprocessIncludes(source, getName(), 0);
82 83
  @@ -148,6 +149,7 @@
148 149 while (std::getline(input, line)) {
149 150 if (std::regex_search(line, matches, Paths::g_includePattern)) {
150 151 include_file = matches[1].str().c_str();
152 + _usedAtoms.push_back(include_file);
151 153
152 154 ShaderType typeIndex = ShaderType::COUNT;
153 155 // switch will throw warnings due to promotion to int
  @@ -171,7 +173,7 @@
171 173 }
172 174
173 175 include_string = ShaderProgram::shaderFileRead(include_file, shaderAtomLocationPrefix[to_uint(typeIndex)]);
174 -
176 +
175 177 if (include_string.empty()) {
176 178 Console::errorfn(Locale::get(_ID("ERROR_GLSL_NO_INCLUDE_FILE")),
177 179 getName().c_str(),