summaryrefslogtreecommitdiff
path: root/Runtime/Graphics/ShaderCompiler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Runtime/Graphics/ShaderCompiler.cpp')
-rw-r--r--Runtime/Graphics/ShaderCompiler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Runtime/Graphics/ShaderCompiler.cpp b/Runtime/Graphics/ShaderCompiler.cpp
index 06ad7b0..637fd59 100644
--- a/Runtime/Graphics/ShaderCompiler.cpp
+++ b/Runtime/Graphics/ShaderCompiler.cpp
@@ -314,7 +314,7 @@ void GLSLCompiler::GetParams(const char* cmdName, std::string& params, std::stri
s_CompileError = string("Compile Shader Error: Invalid parameter count of ") + cmdName +" : " + params;
throw GLSLCompileException(s_CompileError.c_str());
}
- if(!IsSeperator(params[i]))
+ if(!IsSeperator(params[j]))
out[index++] = params.substr(i, j - i + 1);
else
out[index++] = params.substr(i, j - i);
@@ -332,4 +332,4 @@ void GLSLCompiler::GetParams(const char* cmdName, std::string& params, std::stri
}
i = j;
}
-} \ No newline at end of file
+}