diff options
author | chai <chaifix@163.com> | 2021-10-31 19:47:57 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-10-31 19:47:57 +0800 |
commit | e5ffcfb43231c55c1cdd71566e622de7583160a9 (patch) | |
tree | c8cf84cf3eb6ca805054bd6f6466fd772eb44515 /Runtime/Graphics/ShaderCompiler.cpp | |
parent | b972cec461f6c587edd8febbc6dad45bad65046d (diff) |
* glsl compiler
Diffstat (limited to 'Runtime/Graphics/ShaderCompiler.cpp')
-rw-r--r-- | Runtime/Graphics/ShaderCompiler.cpp | 4 |
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 +}
|