From e5ffcfb43231c55c1cdd71566e622de7583160a9 Mon Sep 17 00:00:00 2001 From: chai Date: Sun, 31 Oct 2021 19:47:57 +0800 Subject: * glsl compiler --- Runtime/Graphics/ShaderCompiler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Runtime/Graphics/ShaderCompiler.cpp') 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 +} -- cgit v1.1-26-g67d0